-Honor -i and remove hardcoded IFACES
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6059 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
122ef4c783
commit
d21b54c9fb
@ -1,5 +1,4 @@
|
||||
root=1
|
||||
rootok=1
|
||||
IFACES=eth0 #THIS WILL SOURCE FROM /procm/cmdline if genimage -i argument omitted, TODO
|
||||
netroot=xcat
|
||||
echo '[ -e $NEWROOT/proc ]' > /initqueue-finished/xcatroot.sh
|
||||
|
@ -480,6 +480,12 @@ sub mkinitrd_dracut {
|
||||
cp($_,"$rootimg_dir/usr/share/dracut/modules.d/97xcat");
|
||||
chmod($perm&07777,"$rootimg_dir/usr/share/dracut/modules.d/97xcat/".basename($_));
|
||||
}
|
||||
if ($prinic) {
|
||||
my $optspec;
|
||||
open($optspec,'>>',"$rootimg_dir/usr/share/dracut/modules.d/97xcat/xcat-cmdline.sh");
|
||||
print $optspec "IFACE=$prinic\n";
|
||||
close($optspec);
|
||||
}
|
||||
foreach (@ndrivers) { s/\.ko$//; }
|
||||
system("chroot '$rootimg_dir' dracut -d '".join(' ',@ndrivers)."' -m 'xcat base' /tmp/initrd.$$.gz");
|
||||
move("$rootimg_dir/tmp/initrd.$$.gz","$destdir/initrd.gz");
|
||||
|
Loading…
Reference in New Issue
Block a user