summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-03 13:29:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-03 13:29:36 +0000
commit33ddaa74688741097dcaf2aed8cead7ea0d804ca (patch)
tree047e6b13441ce70fcfda4bf685b91b921fd78d81
parent4dc3ecdfa9e591fbd9482a9c0b24f3217a3ec7e3 (diff)
downloaddrakx-33ddaa74688741097dcaf2aed8cead7ea0d804ca.tar
drakx-33ddaa74688741097dcaf2aed8cead7ea0d804ca.tar.gz
drakx-33ddaa74688741097dcaf2aed8cead7ea0d804ca.tar.bz2
drakx-33ddaa74688741097dcaf2aed8cead7ea0d804ca.tar.xz
drakx-33ddaa74688741097dcaf2aed8cead7ea0d804ca.zip
mount live_tree_totem.clp if needed
-rw-r--r--move/move.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm
index 3d4f5e905..8df980c3e 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -58,6 +58,16 @@ drakx_stuff:
member($_, @ALLOWED_LANGS) or delete $lang::langs{$_} foreach keys %lang::langs;
}
+sub lomount_clp {
+ my ($name) = @_;
+ my ($clp, $dir) = ("/image_raw/live_tree_$name.clp", "/image_$name");
+
+ mkdir_p($dir);
+ my $dev = devices::find_free_loop();
+ run_program::run('losetup', '-r', '-e', 'gz', $dev, $clp);
+ run_program::run('mount', '-r', $dev, $dir);
+}
+
sub install2::startMove {
my $o = $::o;
@@ -103,6 +113,8 @@ Continue at your own risk."), formatError($@) ]) if $@;
output("/var/run/console/$username", 1);
run_program::run('pam_console_apply');
+ lomount_clp('totem') if ! -x '/usr/bin/totem';
+
if (fork()) {
sleep 1;
log::l("DrakX waves bye-bye");