Fix GRUB autoinstall: escape semicolon, fix user-data

This commit is contained in:
Jino Jose committed 2026-06-23 17:41:54 +05:30
1 parent 0b06f600e8
commit 2dfc245b90
2 files changed
+2 -4

No files matched your search

+2 -1
View File
@@ -65,7 +65,8 @@ sed -i "s/set timeout=.*/set timeout=5/" "$GRUB_CFG"
sed -i "s/set timeout_style=.*/set timeout_style=countdown/" "$GRUB_CFG"
# Add autoinstall params to the first linux kernel line
sed -i "/^\s*linux.*vmlinuz/s/$/ autoinstall quiet ds=nocloud;s=\/cdrom\/nocloud\//" "$GRUB_CFG"
# Note: semicolon must be backslash-escaped in GRUB or it's treated as command separator
sed -i "/^\s*linux.*vmlinuz/s/$/ autoinstall ds=nocloud\\;s=\/cdrom\/nocloud\//" "$GRUB_CFG"
echo "✓ GRUB patched"
# ── Extract MBR and EFI partition from original ISO ────
-3
View File
@@ -86,6 +86,3 @@ autoinstall:
# ── Skip confirmations ────────────────────────
user-data:
disable_root: false
# Confirm destructive action without prompting
confirm-bugs: false