From 27088833fef3867a727fb7f34e79c51f55cc5986 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 1 Jun 2012 06:33:07 +0000 Subject: [PATCH] Use dd/sha1sum commands to generate checkpoint keys, instead of date/sha1sum command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 index f9261358d..8a1b1363c 100644 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install-1200 @@ -90,8 +90,8 @@ 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 }') + #KEY=$(date | sha1sum | awk '{ print $1 }') + KEY=$(dd if=/dev/random count=1 2>/dev/null | sha1sum | awk '{print $1}') echo $KEY > $installroot/root/.ckpt.key chmod 400 $installroot/root/.ckpt.key fi