diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-11-07 14:45:58 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-11-07 14:45:58 +0000 |
commit | 8225178a24911e82aa2bb6ee6ee4cd206933baf9 (patch) | |
tree | 49b7d2b42249c667958f1159f7f3336cb77541fe /move/move.pm | |
parent | 419a368acbb540db6ae8cff8efb04dca76824409 (diff) | |
download | drakx-8225178a24911e82aa2bb6ee6ee4cd206933baf9.tar drakx-8225178a24911e82aa2bb6ee6ee4cd206933baf9.tar.gz drakx-8225178a24911e82aa2bb6ee6ee4cd206933baf9.tar.bz2 drakx-8225178a24911e82aa2bb6ee6ee4cd206933baf9.tar.xz drakx-8225178a24911e82aa2bb6ee6ee4cd206933baf9.zip |
create and handle always_i18n_xxx clp's
Diffstat (limited to 'move/move.pm')
-rw-r--r-- | move/move.pm | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/move/move.pm b/move/move.pm index f2ffd6ddb..72b3759c1 100644 --- a/move/move.pm +++ b/move/move.pm @@ -93,30 +93,44 @@ sub init { drakx_stuff: $o->{steps}{startMove} = { reachable => 1, text => "Start Move" }; + $o->{steps}{handleMoveKey} = { reachable => 1, text => "Handle Move Key" }; $o->{orderedSteps_orig} = $o->{orderedSteps}; - $o->{orderedSteps} = [ qw(selectLanguage acceptLicense selectMouse selectKeyboard startMove) ]; + $o->{orderedSteps} = [ qw(selectLanguage handleMoveKey acceptLicense selectMouse selectKeyboard startMove) ]; member($_, @ALLOWED_LANGS) or delete $lang::langs{$_} foreach keys %lang::langs; } sub lomount_clp { - my ($name) = @_; + my ($name, $needed_file) = @_; my ($clp, $dir) = ("/image_raw/live_tree_$name.clp", "/image_$name"); + -e "$dir$needed_file" and return; + if (! -e $clp || cat_('/proc/cmdline') =~ /\blive\b/) { symlink "/image_raw/live_tree_$name", $dir; return; } + log::l("lomount_clp: lomounting $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::handleMoveKey { + my $o = $::o; + + lomount_clp("always_i18n_$o->{locale}{lang}", '/usr'); +} + sub install2::startMove { my $o = $::o; + #- just in case + lomount_clp("always_i18n_$o->{locale}{lang}", '/usr'); + if (cat_('/proc/cmdline') =~ /\buser=(\w+)/) { $o->{users} = [ { name => $1 } ]; } else { |