From 2819a23bb4a9a12350c55b145be4f6f1309eb2c5 Mon Sep 17 00:00:00 2001 From: datajerk Date: Sun, 11 May 2008 14:25:45 +0000 Subject: [PATCH] Copy dhclient.leases and resolv.conf to tmpfs before booting OS. (hybrid only) Fixes NFS-hybrid problems wish xCAT postscripts. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1347 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/netboot/rh/genimage | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server-2.0/share/xcat/netboot/rh/genimage b/xCAT-server-2.0/share/xcat/netboot/rh/genimage index 8af78cdcd..01a646e12 100755 --- a/xCAT-server-2.0/share/xcat/netboot/rh/genimage +++ b/xCAT-server-2.0/share/xcat/netboot/rh/genimage @@ -246,6 +246,11 @@ if [ "\$NFS" = "1" ]; then sleep 5 #should be random, exponential for scale done mount -t tmpfs rw /rw + mkdir -p /rw/etc + mkdir -p /rw/var/lib/dhclient + cp /etc/resolv.conf /rw/etc/ + cp /var/lib/dhclient/dhclient.leases /rw/var/lib/dhclient/dhclient-eth0.leases + cp /var/lib/dhclient/dhclient.leases /rw/var/lib/dhclient/dhclient-eth1.leases mount -t aufs -o dirs=/rw:/ro mergedroot /sysroot mkdir -p /sysroot/ro mkdir -p /sysroot/rw