diff options
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index b9f360431..9a8a005b7 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -37,18 +37,15 @@ sub del_loop { my ($dev) = @_; run_program::run("losetup", "-d", $dev); } -sub find_free_loop_raw { - my ($o_chloop) = @_; +sub find_free_loop() { foreach (0..7) { - my $dev = make(($o_chloop && 'ch') . "loop$_"); + my $dev = make("loop$_"); sysopen(my $F, $dev, 2) or next; !ioctl($F, c::LOOP_GET_STATUS(), my $_tmp) && $! == 6 or next; #- 6 == ENXIO return $dev; } die "no free loop found"; } -sub find_free_loop() { find_free_loop_raw() } -sub find_free_chloop() { find_free_loop_raw('chloop') } sub set_loop { my ($file, $o_encrypt_key, $o_encryption) = @_; eval { modules::load('loop') }; @@ -120,7 +117,6 @@ sub entry { "usb/lp" => [ c::S_IFCHR(), 180, 0 ], "input/event" => [ c::S_IFCHR(), 13, 64 ], "loop" => [ c::S_IFBLK(), 7, 0 ], - "chloop" => [ c::S_IFBLK(), 100, 0 ], "md" => [ c::S_IFBLK(), 9, 0 ], "nst" => [ c::S_IFCHR(), 9, 128 ], "scd" => [ c::S_IFBLK(), 11, 0 ], |