From e32c79ea020f88a81a38e2d953a8bd9b10cc7bb0 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 3 May 2012 06:16:37 +0000 Subject: [PATCH] Generate checkpoint key and store it into the image, ckpt script could ust it after boot git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12494 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 index 3e1a72b1f..f9261358d 100644 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 @@ -88,6 +88,14 @@ if [ "$OS" != "AIX" ]; then fi fi +#Generate checkpoint key and store it into the image, ckpt script could ust it after boot. +if [ "$OS" != "AIX" ]; then + KEY=$(date | sha1sum | awk '{ print $1 }') + # KEY=$(dd if=/dev/random bs=1 | sha1sum | awk '{ print $1 }') + echo $KEY > $installroot/root/.ckpt.key + chmod 400 $installroot/root/.ckpt.key +fi + # BSR configuration, uncomment the following lines to enable BSR configuration on Power Linux cluter. #if [ "$OS" != "AIX" ]; then