Clonezilla: warn while the default share password is in use; prepare-boot-tools.sh no longer fails on an empty tool folder

The final listing of an empty boot-tools/blancco (no Blancco ISO yet)
failed under pipefail and made the script exit 1 after a good download.
This commit is contained in:
cproudlock
2026-10-15 15:32:10 -04:00
parent 9d56a5369e
commit 23ee99a390
2 changed files with 13 additions and 3 deletions

View File

@@ -269,6 +269,16 @@
Fix it in playbook/site-vars.yml and re-run.
quiet: yes
- name: "Clonezilla: WARNING - the default Samba password is in use"
# The password is readable from the boot menu by anything on the imaging
# LAN and the default is the same at every site. It opens only the
# clonezilla share, but each site should set its own.
debug:
msg: >-
!!! WARNING: clonezilla_smb_password is the shipped default. Set a
site-specific value in playbook/site-vars.yml and re-run.
when: clonezilla_smb_password == "clonezilla-backup"
# --- Re-run safety (nothing below changes the box until these pass) ---
- name: "Re-run safety: is imaging in progress? (SMB sessions, recent DHCP leases)"
args:

View File

@@ -70,7 +70,7 @@ else
fi
fi
ls -lh "$OUT_DIR/clonezilla/" 2>/dev/null | grep -E 'vmlinuz|initrd|squashfs|shimx64' | sed 's/^/ /'
ls -lh "$OUT_DIR/clonezilla/" 2>/dev/null | grep -E 'vmlinuz|initrd|squashfs|shimx64' | sed 's/^/ /' || true
# The shim must be Microsoft-signed (firmware trusts it) and the kernel
# Debian-signed (the shim trusts that); otherwise Secure Boot refuses them.
if command -v sbverify >/dev/null && [ -s "$OUT_DIR/clonezilla/shimx64.efi" ]; then
@@ -108,7 +108,7 @@ else
fi
rm -rf "$TMPDIR"
fi
ls -lh "$OUT_DIR/clonezilla-i686/" 2>/dev/null | grep -E 'vmlinuz|initrd|squashfs' | sed 's/^/ /'
ls -lh "$OUT_DIR/clonezilla-i686/" 2>/dev/null | grep -E 'vmlinuz|initrd|squashfs' | sed 's/^/ /' || true
# --- Blancco Drive Eraser ---
echo ""
@@ -307,7 +307,7 @@ else
echo " Usage: $0 /path/to/DriveEraser.iso"
fi
ls -lh "$OUT_DIR/blancco/" 2>/dev/null | grep -v '^total' | sed 's/^/ /'
ls -lh "$OUT_DIR/blancco/" 2>/dev/null | grep -v '^total' | sed 's/^/ /' || true
# --- Summary ---
echo ""