From acc4048b8314395a3d43cce48ebc8d28b136b1f9 Mon Sep 17 00:00:00 2001 From: "Thierry.Vignaud" Date: Wed, 18 Jun 2014 15:58:28 +0200 Subject: don't bother creating /dev/null We mount --bind /dev on $::prefix/dev just after... Should have been done in commit 0e175066e7b21b48285d28afe85493664a0c2a8a Also restore comment & fix it. --- perl-install/fs/any.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/any.pm b/perl-install/fs/any.pm index fb80a32fc..a6666c737 100644 --- a/perl-install/fs/any.pm +++ b/perl-install/fs/any.pm @@ -79,15 +79,13 @@ sub create_minimal_files() { etc/sysconfig/console/consoletrans home mnt run tmp var var/tmp var/lib var/lib/rpm var/lib/urpmi); mkdir "$::prefix/$_", 0700 foreach qw(root root/tmp root/drakx); - - devices::make("$::prefix/dev/null"); - chmod 0666, "$::prefix/dev/null"; } sub prepare_minimal_root() { fs::any::create_minimal_files(); + # ensure we've all needed devices, for bootloader install and mkinitrd: run_program::run('mount', '--bind', '/dev', "$::prefix/dev"); run_program::run('mount', '--bind', '/run', "$::prefix/run"); eval { fs::mount::mount('none', "$::prefix/proc", 'proc') }; -- cgit v1.2.1