summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-28 08:52:08 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-28 08:52:08 +0000
commitfc47c078a254456bca170656e6b89c212d447f74 (patch)
tree8010236fe733a649fb6368ddd57702459c4f0945
parent719eb7e1d3fb874a83658190c481285763c51249 (diff)
downloaddraklive-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-xdraklive10
1 files changed, 9 insertions, 1 deletions
diff --git a/draklive b/draklive
index 6727060..7031656 100755
--- a/draklive
+++ b/draklive
@@ -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/');