To enable PE checkpoint/restart function, PE postinstall script shippted by xCAT should write the checkpoint key to rootimage and so ckpt.sh can read it after boot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12524 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -26,3 +26,10 @@ for fs in ext3 ext4 nfs gpfs tmpfs; do
 | 
			
		||||
    fi
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Read checkpoint key from rootfs which generated by xCAT postinstall script
 | 
			
		||||
if [ -f /root/.ckpt.key ]; then
 | 
			
		||||
    cat /root/.ckpt.key > /sys/kernel/checkpoint/checksum_key
 | 
			
		||||
else
 | 
			
		||||
    echo 'ERROR:  no checkpoint key found' 
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user