From 18b2a0d8aa2c8955ae356ad54055f95a159bd6ba Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 9 Nov 2010 18:41:22 +0000 Subject: [PATCH] -Restore resolv.conf preservation in RHEL5 stateless git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8106 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/rh/genimage | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index f4ce2d82f..42cf5a03d 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -1221,6 +1221,7 @@ EOMS print $inifile "cd /\n"; print $inifile "cp /var/lib/dhclient/dhclient.leases /sysroot/dev/.dhclient-\$IFACE.leases\n"; print $inifile "cp /var/lib/dhclient/dhclient.leases /sysroot/var/lib/dhclient/dhclient-\$IFACE.leases\n"; + print $inifile 'if [ -z "$SNAPSHOTSERVER" ]; then cp /etc/resolv.conf /sysroot/etc/resolv.conf; fi'."\n"; print $inifile "mknod /sysroot/dev/console c 5 1\n"; print $inifile "exec switch_root -c /dev/console /sysroot /sbin/init\n"; close($inifile);