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
This commit is contained in:
parent
710353c1b0
commit
2819a23bb4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user