summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-02-17 16:20:42 +0000
committerOlivier Blin <oblin@mandriva.org>2006-02-17 16:20:42 +0000
commit0d218f0043747261c7f45c143bc10c79a865e22a (patch)
tree8dc5a96f90a292effc2437d5050081effe6455d7 /tools
parent9531f20c76bee0e01be0c9c0e88f6dcfd1e4c778 (diff)
downloaddrakx-backup-do-not-use-0d218f0043747261c7f45c143bc10c79a865e22a.tar
drakx-backup-do-not-use-0d218f0043747261c7f45c143bc10c79a865e22a.tar.gz
drakx-backup-do-not-use-0d218f0043747261c7f45c143bc10c79a865e22a.tar.bz2
drakx-backup-do-not-use-0d218f0043747261c7f45c143bc10c79a865e22a.tar.xz
drakx-backup-do-not-use-0d218f0043747261c7f45c143bc10c79a865e22a.zip
fix errors from previous commit
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/draklive b/tools/draklive
index 473cf5b03..589056c35 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -788,8 +788,17 @@ sub copy_wizard {
sub complete_config {
my ($live) = @_;
+ my $default_prefix = {
+ media_mnt => '/media',
+ live_mnt => '/live',
+ loopbacks => '/loopbacks',
+ images => '/images',
+ boot => '/boot',
+ initrd => '/initrd',
+ };
+
if ($live->{copy_wizard}) {
- add2hash($live{prefix} ||= {}, $default_prefix);
+ add2hash($live->{prefix} ||= {}, $default_prefix);
#- assumes the current live media is mounted there
$live->{workdir} = $live->{prefix}{live_mnt} . $live->{prefix}{media_mnt};
$live->{mnt} = '/tmp/mnt';
@@ -804,7 +813,7 @@ sub complete_config {
$live->{system}{kernel} or die "no kernel has been configured";
mkdir_p(get_workdir($live));
- add2hash($live{prefix} ||= {}, $default_prefix);
+ add2hash($live->{prefix} ||= {}, $default_prefix);
}
}
@@ -813,15 +822,6 @@ sub clean {
rm_rf($_) foreach grep { -e $_ } get_workdir($live), get_system_root($live);
}
-my $default_prefix = {
- media_mnt => '/media',
- live_mnt => '/live',
- loopbacks => '/loopbacks',
- images => '/images',
- boot => '/boot',
- initrd => '/initrd',
-};
-
my @actions = (
{ name => 'clean', do => \&clean },
{ name => 'install', do => \&install_system },