diff options
-rwxr-xr-x | draklive-install | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/draklive-install b/draklive-install index 285fc44..0b7f157 100755 --- a/draklive-install +++ b/draklive-install @@ -131,6 +131,10 @@ open(my $OUTPUT, '-|', build_copy_command('/', $::prefix)); undef $update_progress; undef $wait; +#- create required directories and devices (early to have a consistent root before calling other programs) +mkdir_p($::prefix . $_) foreach qw(/dev /etc /proc /sys); +run_program::run('makedev', $::prefix . '/dev'); + my $real_rpm_dir = "/tmp/rpm/real"; cp_f(glob($real_rpm_dir . "/*"), $::prefix . "/var/lib/rpm") if -d $real_rpm_dir; @@ -172,9 +176,6 @@ any::set_autologin($in->do_pkgs, undef); #- allow to install doc in disk install substInFile { undef $_ if /^\%_excludedocs/ } $::prefix . '/etc/rpm/macros'; -#- create required directories and devices -mkdir_p($::prefix . $_) foreach qw(/dev /etc /proc /sys); -run_program::run('makedev', $::prefix . '/dev'); #- write fstab fs::write_fstab($all_hds, $::prefix); |