diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-12-04 17:02:04 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-12-04 17:02:04 +0000 |
commit | 94808385dc7c404319170422871f407873528d85 (patch) | |
tree | f3a733a0b925ce064f30af13bbebdaf00119ede6 | |
parent | 82db5375923c2baea7b94bbc308640421ba27533 (diff) | |
download | draklive-install-94808385dc7c404319170422871f407873528d85.tar draklive-install-94808385dc7c404319170422871f407873528d85.tar.gz draklive-install-94808385dc7c404319170422871f407873528d85.tar.bz2 draklive-install-94808385dc7c404319170422871f407873528d85.tar.xz draklive-install-94808385dc7c404319170422871f407873528d85.zip |
create devices early to have a consistent root before calling other programs (so that /dev/null does not become a plain file when accessed by other programs, thanks rtp!)
-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); |