From 0e175066e7b21b48285d28afe85493664a0c2a8a Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 5 May 2012 17:37:33 +0000 Subject: bind mount /dev inside chroot rather than copy nodes (mga#5730) --- perl-install/fs/any.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'perl-install/fs/any.pm') diff --git a/perl-install/fs/any.pm b/perl-install/fs/any.pm index 431a22531..12aab35ca 100644 --- a/perl-install/fs/any.pm +++ b/perl-install/fs/any.pm @@ -6,6 +6,7 @@ use strict; use common; use fsedit; use fs::mount_point; +use run_program; sub get_hds { my ($all_hds, $fstab, $manual_fstab, $partitioning_flags, $skip_mtab, $o_in) = @_; @@ -92,12 +93,10 @@ sub prepare_minimal_root() { fs::any::create_minimal_files(); + run_program::run('mount', '--bind', '/dev', "$::prefix/dev"); eval { fs::mount::mount('none', "$::prefix/proc", 'proc') }; eval { fs::mount::mount('none', "$::prefix/sys", 'sysfs') }; eval { fs::mount::usbfs($::prefix) }; - - # copy all needed devices, for bootloader install and mkinitrd - cp_af('/dev', $::prefix); } sub getAvailableSpace { -- cgit v1.2.1