From 025b460d32d577c83f65540447420b5ecfc6f55b Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 13 Dec 2007 16:51:01 +0000 Subject: move ifconfig/mount copy in storage_fs --- draklive | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/draklive b/draklive index 82295ee..b36019e 100755 --- a/draklive +++ b/draklive @@ -166,6 +166,7 @@ my %storage_fs; }, }, nfs => { + files => [ '/sbin/ifconfig', '/bin/mount' ], #- needed to mount NFS (with nolock) mount => sub { my ($live, $media) = @_; '/bin/mount -n -o ro,nolock -t nfs ' . get_media_source_for_nash($media) . " $live->{prefix}{live}{mnt}$live->{prefix}{media}{mnt}"; @@ -472,11 +473,7 @@ sub create_initrd_for_media { 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) - cp_f(get_system_root($live) . '/bin/mount', $initrd_tree . '/bin/'); if ($live->{debug}) { cp_f(get_system_root($live) . '/bin/ping', $initrd_tree . '/bin/'); cp_f(glob(get_system_root($live) . $lib_prefix . '/libresolv*.so.*'), $initrd_tree . $lib_prefix); -- cgit v1.2.1