Refresh ISO checksums after final grub patch
This commit is contained in:
parent
d6c9554b93
commit
82abbd90bb
@ -66,20 +66,6 @@ rsync -a --delete \
|
|||||||
"$PACKAGE_DIR/" "$WORK_DIR/cezen-aipackage/"
|
"$PACKAGE_DIR/" "$WORK_DIR/cezen-aipackage/"
|
||||||
echo "✓ Installer payload bundled"
|
echo "✓ Installer payload bundled"
|
||||||
|
|
||||||
# ── Refresh installer checksum manifest ─────────────────
|
|
||||||
echo "→ Refreshing md5sum.txt..."
|
|
||||||
(
|
|
||||||
cd "$WORK_DIR"
|
|
||||||
rm -f md5sum.txt
|
|
||||||
find . -type f \
|
|
||||||
! -path './md5sum.txt' \
|
|
||||||
! -path './boot.catalog' \
|
|
||||||
-print0 \
|
|
||||||
| sort -z \
|
|
||||||
| xargs -0 md5sum > md5sum.txt
|
|
||||||
)
|
|
||||||
echo "✓ md5sum.txt refreshed"
|
|
||||||
|
|
||||||
# ── Patch GRUB ────────────────────────────────
|
# ── Patch GRUB ────────────────────────────────
|
||||||
echo "→ Patching GRUB config..."
|
echo "→ Patching GRUB config..."
|
||||||
GRUB_CFG="$WORK_DIR/boot/grub/grub.cfg"
|
GRUB_CFG="$WORK_DIR/boot/grub/grub.cfg"
|
||||||
@ -96,6 +82,20 @@ sed -i "s/set timeout_style=.*/set timeout_style=countdown/" "$GRUB_CFG"
|
|||||||
sed -i '/^\s*linux.*vmlinuz/s|---|autoinstall ds=nocloud\\;s=/cdrom/nocloud/ ---|' "$GRUB_CFG"
|
sed -i '/^\s*linux.*vmlinuz/s|---|autoinstall ds=nocloud\\;s=/cdrom/nocloud/ ---|' "$GRUB_CFG"
|
||||||
echo "✓ GRUB patched"
|
echo "✓ GRUB patched"
|
||||||
|
|
||||||
|
# ── Refresh installer checksum manifest ─────────────────
|
||||||
|
echo "→ Refreshing md5sum.txt..."
|
||||||
|
(
|
||||||
|
cd "$WORK_DIR"
|
||||||
|
rm -f md5sum.txt
|
||||||
|
find . -type f \
|
||||||
|
! -path './md5sum.txt' \
|
||||||
|
! -path './boot.catalog' \
|
||||||
|
-print0 \
|
||||||
|
| sort -z \
|
||||||
|
| xargs -0 md5sum > md5sum.txt
|
||||||
|
)
|
||||||
|
echo "✓ md5sum.txt refreshed"
|
||||||
|
|
||||||
# ── Extract MBR and EFI partition from original ISO ────
|
# ── Extract MBR and EFI partition from original ISO ────
|
||||||
echo "→ Extracting boot data from original ISO..."
|
echo "→ Extracting boot data from original ISO..."
|
||||||
MBR_TEMPLATE=$(mktemp)
|
MBR_TEMPLATE=$(mktemp)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user