add a site_admin account to the bootcd. passwd value can be changed at image build...
Stephen Soltesz [Tue, 9 Dec 2008 23:27:20 +0000 (23:27 +0000)]
prep.sh

diff --git a/prep.sh b/prep.sh
index 68bebcf..da63c48 100755 (executable)
--- a/prep.sh
+++ b/prep.sh
@@ -50,6 +50,9 @@ pkgsfile=$(pl_locateDistroFile ../build/ $pldistro bootcd.pkgs)
 pl_root_mkfedora $bootcd $pldistro $pkgsfile
 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
+
 # Install ipnmac (for SuperMicro machines with IPMI)
 echo "* Installing IPMI utilities"
 install -D -m 755 ipnmac/ipnmac.x86 $bootcd/usr/sbin/ipnmac