summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
Diffstat (limited to 'move')
-rw-r--r--move/move.pm2
-rwxr-xr-xmove/tree/mdk_move_loop4
2 files changed, 3 insertions, 3 deletions
diff --git a/move/move.pm b/move/move.pm
index 25210ae4f..2c26474b4 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -197,7 +197,7 @@ sub lomount_clp {
log::l("lomount_clp: lomounting $name");
mkdir_p($dir);
- my $dev = devices::find_free_loop();
+ my $dev = devices::find_free_chloop();
run_program::run('losetup', '-r', '-e', 'gz', $dev, $clp);
run_program::run('mount', '-r', $dev, $dir);
}
diff --git a/move/tree/mdk_move_loop b/move/tree/mdk_move_loop
index b98c4a417..76aca6dbe 100755
--- a/move/tree/mdk_move_loop
+++ b/move/tree/mdk_move_loop
@@ -8,8 +8,8 @@ sub name2file {
sub get_file2loop {
my %file2loop;
foreach (0 .. 9) {
- my ($file) = `sudo losetup /dev/loop$_ 2>/dev/null` =~ m!\([^)]*/([^)]*)\)! or last;
- $file2loop{$file} = "loop$_";
+ my ($file) = `sudo losetup /dev/chloop$_ 2>/dev/null` =~ m!\([^)]*/([^)]*)\)! or last;
+ $file2loop{$file} = "chloop$_";
}
%file2loop;
}