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