Fix GRUB autoinstall: escape semicolon, fix user-data
This commit is contained in:
parent
0b06f600e8
commit
2dfc245b90
@ -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"
|
sed -i "s/set timeout_style=.*/set timeout_style=countdown/" "$GRUB_CFG"
|
||||||
|
|
||||||
# Add autoinstall params to the first linux kernel line
|
# 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"
|
echo "✓ GRUB patched"
|
||||||
|
|
||||||
# ── Extract MBR and EFI partition from original ISO ────
|
# ── Extract MBR and EFI partition from original ISO ────
|
||||||
|
|||||||
@ -86,6 +86,3 @@ autoinstall:
|
|||||||
# ── Skip confirmations ────────────────────────
|
# ── Skip confirmations ────────────────────────
|
||||||
user-data:
|
user-data:
|
||||||
disable_root: false
|
disable_root: false
|
||||||
|
|
||||||
# Confirm destructive action without prompting
|
|
||||||
confirm-bugs: false
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user