diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2010-06-02 11:21:42 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2010-06-02 11:21:42 +0000 |
commit | 8658cf3deb673be544fae0be80f88dcddb49061c (patch) | |
tree | cf3ee52f8bad0b5360f95b647c22b938d24bb766 /perl-install/fs | |
parent | e7db94ea5f9c1f5ed743c28f640c9da9861081fa (diff) | |
download | drakx-8658cf3deb673be544fae0be80f88dcddb49061c.tar drakx-8658cf3deb673be544fae0be80f88dcddb49061c.tar.gz drakx-8658cf3deb673be544fae0be80f88dcddb49061c.tar.bz2 drakx-8658cf3deb673be544fae0be80f88dcddb49061c.tar.xz drakx-8658cf3deb673be544fae0be80f88dcddb49061c.zip |
copy all devices to target
Diffstat (limited to 'perl-install/fs')
-rw-r--r-- | perl-install/fs/any.pm | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/perl-install/fs/any.pm b/perl-install/fs/any.pm index 25784ea98..50d03b656 100644 --- a/perl-install/fs/any.pm +++ b/perl-install/fs/any.pm @@ -97,21 +97,8 @@ sub prepare_minimal_root { eval { fs::mount::mount('none', "$::prefix/sys", 'sysfs') }; eval { fs::mount::usbfs($::prefix) }; - #- needed by lilo and mkinitrd - if (-d '/dev/mapper') { - my @vgs = map { $_->{VG_name} } @{$all_hds->{lvms}}; - foreach my $dev ('mapper', @vgs) { - -e "/dev/$dev" or next; - cp_af("/dev/$dev", "$::prefix/dev"); - foreach (all("/dev/$dev")) { - -l "/dev/$dev/$_" or next; - my $target = readlink "$::prefix/dev/$dev/$_"; - $target =~ /^\// or $target="/dev/$dev/$target"; - -e "$::prefix$target" and next; - cp_af($target, "$::prefix$target"); - } - } - } + # copy all needed devices, for bootloader install and mkinitrd + cp_af("/dev", "$::prefix"); } sub getAvailableSpace { |