diff options
-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/'); |