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:
wanghuaz 2012-05-04 09:25:13 +00:00
parent ddf754b1e8
commit 236888437d

View File

@ -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