pl_root_makedevs $bootcd
pkgsfile=$(pl_locateDistroFile ../build/ $pldistro bootcd.pkgs)
pl_root_mkfedora $bootcd $pldistro $pkgsfile
+echo "** DBG1 - contents of /boot after mkfedora"
+ls -R $bootcd/boot
pl_root_tune_image $bootcd
+echo "** DBG2 - contents of /boot after tune_image"
+ls -R $bootcd/boot
# Add site_admin console account to BootCD: with root priv, and self passwd
+echo "* Creating site_admin account"
CRYPT_SA_PASSWORD=$(python3 -c "import crypt, random, string; salt = [random.choice(string.ascii_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
# Copy the kernel out
echo "* BootCD - locating kernel"
for kernel in $bootcd/boot/vmlinuz-* ; do
- if [ -f $kernel ] ; then
+ if [ -f "$kernel" ] ; then
echo "* BootCD kernel (1) creating from $kernel"
echo "* kernel created (1) from $kernel" > $isofs/kernel.from
install -D -m 644 $kernel $isofs/kernel
# second chance if first approach would not work
if [ ! -f $isofs/kernel ] ; then
kernel=$(find $bootcd/boot -name linux)
- if [ -f $kernel ] ; then
+ if [ -f "$kernel" ] ; then
echo "* BootCD kernel (2) creating from $kernel"
echo "* kernel created (2) from $kernel" > $isofs/kernel.from
install -D -m 644 $kernel $isofs/kernel