diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-28 22:25:40 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-28 22:25:40 +0000 |
commit | 4e0e59e929b8e9c84628884c40b86030dd743329 (patch) | |
tree | f7488c49781c648fd0c6d33b3ed86064e61d9aa7 | |
parent | e2e21b0c325127e4cf4be8fe7f747621358d2e13 (diff) | |
download | draklive-install-4e0e59e929b8e9c84628884c40b86030dd743329.tar draklive-install-4e0e59e929b8e9c84628884c40b86030dd743329.tar.gz draklive-install-4e0e59e929b8e9c84628884c40b86030dd743329.tar.bz2 draklive-install-4e0e59e929b8e9c84628884c40b86030dd743329.tar.xz draklive-install-4e0e59e929b8e9c84628884c40b86030dd743329.zip |
create /dev and minimal directories right after format_mount
-rwxr-xr-x | draklive-install | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/draklive-install b/draklive-install index 0b7f157..ec6bc84 100755 --- a/draklive-install +++ b/draklive-install @@ -100,6 +100,10 @@ fs::partitioning::choose_partitions_to_format($in, $fstab); umount_all($fstab); fs::partitioning::format_mount_partitions($in, $all_hds, $fstab); +#- 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'); + #- copy to disk my $wait = $in->wait_message('', N("Computing total size")); my $total = first(split(/\s+/, `du -sbx / 2>/dev/null`)); @@ -131,10 +135,6 @@ 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; |