mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-11 07:40:11 +00:00
fix a bug that cannot generate resolv.conf correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -1154,7 +1154,7 @@ EOMS
|
||||
print $inifile "cd /\n";
|
||||
print $inifile "cp /var/lib/dhclient/dhclient.leases \$NEWROOT/dev/.dhclient-\$IFACE.leases\n";
|
||||
print $inifile "cp /var/lib/dhclient/dhclient.leases \$NEWROOT/var/lib/dhclient/dhclient-\$IFACE.leases\n";
|
||||
print $inifile 'if [ -z "$SNAPSHOTSERVER" ]; then cp /etc/resolv.conf \$NEWROOT/etc/resolv.conf; fi'."\n";
|
||||
print $inifile 'if [ -z "$SNAPSHOTSERVER" ]; then cp /etc/resolv.conf $NEWROOT/etc/resolv.conf; fi'."\n";
|
||||
print $inifile "mknod \$NEWROOT/dev/console c 5 1\n";
|
||||
print $inifile "exec switch_root -c /dev/console \$NEWROOT /sbin/init\n";
|
||||
close($inifile);
|
||||
|
Reference in New Issue
Block a user