summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm18
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 {