mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user