summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-18 11:46:28 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-18 11:46:28 +0000
commitdc672286dd776deb68794d0acdd026095ff0c4ff (patch)
treeecc4c569db5a8ab6a9fa79871aa81a7991eb808e /draklive
parent472deb14a14616b07df41e754fad89fa0bb7cf29 (diff)
downloaddrakiso-dc672286dd776deb68794d0acdd026095ff0c4ff.tar
drakiso-dc672286dd776deb68794d0acdd026095ff0c4ff.tar.gz
drakiso-dc672286dd776deb68794d0acdd026095ff0c4ff.tar.bz2
drakiso-dc672286dd776deb68794d0acdd026095ff0c4ff.tar.xz
drakiso-dc672286dd776deb68794d0acdd026095ff0c4ff.zip
automatically export draklive settings to DRAKLIVE_ environment variables for install
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive7
1 files changed, 5 insertions, 2 deletions
diff --git a/draklive b/draklive
index 244b4cb..865477d 100755
--- a/draklive
+++ b/draklive
@@ -164,9 +164,12 @@ sub install_system {
$drakx_in_chroot = $local_drakx_in_chroot;
}
- local %ENV = (%ENV, %{$live->{system}{install_env}});
+ local %ENV = (
+ %ENV,
+ (map { "DRAKLIVE_". uc($_->[0]) => $_->[1] } group_by2(%{$live->{settings}})),
+ %{$live->{system}{install_env}},
+ );
$ENV{DRAKLIVE_LANGS} = join(':', get_langs($live));
- $ENV{DRAKLIVE_REGION} = $live->{settings}{region};
run_({ setarch => $live->{settings}{arch} },
'perl', $drakx_in_chroot,
$repository,