git://git.onelab.eu
/
bootcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
992d35f
)
give it a basic password
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Tue, 9 Dec 2008 23:44:39 +0000
(23:44 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Tue, 9 Dec 2008 23:44:39 +0000
(23:44 +0000)
prep.sh
patch
|
blob
|
history
diff --git
a/prep.sh
b/prep.sh
index
da63c48
..
6a27779
100755
(executable)
--- a/
prep.sh
+++ b/
prep.sh
@@
-51,7
+51,8
@@
pl_root_mkfedora $bootcd $pldistro $pkgsfile
pl_root_tune_image $bootcd
# Add site_admin console account to BootCD: with root priv, and empty passwd
pl_root_tune_image $bootcd
# Add site_admin console account to BootCD: with root priv, and empty passwd
-chroot ${bootcd} /usr/sbin/useradd -p "" -o -g 0 -u 0 -m site_admin
+CRYPT_SA_PASSWORD=$(python -c "import crypt, random, string; salt = [random.choice(string.letters + string.digits + \"./\") for i in range(0,8)] ; print crypt.crypt('site_admin', '\$1\$' + "".join(salt) + '\$')")
+chroot ${bootcd} /usr/sbin/useradd -p "$CRYPT_SA_PASSWORD" -o -g 0 -u 0 -m site_admin
# Install ipnmac (for SuperMicro machines with IPMI)
echo "* Installing IPMI utilities"
# Install ipnmac (for SuperMicro machines with IPMI)
echo "* Installing IPMI utilities"