diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-11-03 13:29:36 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-11-03 13:29:36 +0000 |
commit | 33ddaa74688741097dcaf2aed8cead7ea0d804ca (patch) | |
tree | 047e6b13441ce70fcfda4bf685b91b921fd78d81 /move | |
parent | 4dc3ecdfa9e591fbd9482a9c0b24f3217a3ec7e3 (diff) | |
download | drakx-backup-do-not-use-33ddaa74688741097dcaf2aed8cead7ea0d804ca.tar drakx-backup-do-not-use-33ddaa74688741097dcaf2aed8cead7ea0d804ca.tar.gz drakx-backup-do-not-use-33ddaa74688741097dcaf2aed8cead7ea0d804ca.tar.bz2 drakx-backup-do-not-use-33ddaa74688741097dcaf2aed8cead7ea0d804ca.tar.xz drakx-backup-do-not-use-33ddaa74688741097dcaf2aed8cead7ea0d804ca.zip |
mount live_tree_totem.clp if needed
Diffstat (limited to 'move')
-rw-r--r-- | move/move.pm | 12 |
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"); |