diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-02-17 16:20:42 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-02-17 16:20:42 +0000 |
commit | 0d218f0043747261c7f45c143bc10c79a865e22a (patch) | |
tree | 8dc5a96f90a292effc2437d5050081effe6455d7 | |
parent | 9531f20c76bee0e01be0c9c0e88f6dcfd1e4c778 (diff) | |
download | drakx-0d218f0043747261c7f45c143bc10c79a865e22a.tar drakx-0d218f0043747261c7f45c143bc10c79a865e22a.tar.gz drakx-0d218f0043747261c7f45c143bc10c79a865e22a.tar.bz2 drakx-0d218f0043747261c7f45c143bc10c79a865e22a.tar.xz drakx-0d218f0043747261c7f45c143bc10c79a865e22a.zip |
fix errors from previous commit
-rwxr-xr-x | tools/draklive | 22 |
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 }, |