diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-08-28 08:52:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-08-28 08:52:08 +0000 |
commit | fc47c078a254456bca170656e6b89c212d447f74 (patch) | |
tree | 8010236fe733a649fb6368ddd57702459c4f0945 | |
parent | 719eb7e1d3fb874a83658190c481285763c51249 (diff) | |
download | draklive-fc47c078a254456bca170656e6b89c212d447f74.tar draklive-fc47c078a254456bca170656e6b89c212d447f74.tar.gz draklive-fc47c078a254456bca170656e6b89c212d447f74.tar.bz2 draklive-fc47c078a254456bca170656e6b89c212d447f74.tar.xz draklive-fc47c078a254456bca170656e6b89c212d447f74.zip |
allow to copy per-fs files in mkinitrd
-rwxr-xr-x | draklive | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -433,7 +433,9 @@ sub create_initrd_for_media { or die 'unable to copy blockdev from system chroot'; } - if (get_media_setting($media, 'fs') eq 'nfs') { + my $fs = get_media_setting($media, 'fs'); + if ($fs eq 'nfs') { + #- FIXME: move in %storage_fs $need_libs = 1; cp_f(get_system_root($live) . '/sbin/ifconfig', $initrd_tree . '/bin/'); #- needed to mount NFS (with nolock) @@ -443,6 +445,12 @@ sub create_initrd_for_media { cp_f(glob(get_system_root($live) . $lib_prefix . '/libresolv*.so.*'), $initrd_tree . $lib_prefix); } } + + if (exists $storage_fs{$fs}{files}) { + cp_f(get_system_root($live) . $_, $initrd_tree . '/bin/') + foreach @{$storage_fs{$fs}{files} || []}; + } + if ($live->{debug}) { $need_libs = 1; cp_f(get_system_root($live) . '/usr/bin/strace', $initrd_tree . '/bin/'); |