mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
fix(syslinux): Apply sudo_clobber fix to syslinux configs.
Already cleaned up the contrived cat/dd combo for the pvgrub configs, do the same for the syslinux configs.
This commit is contained in:
parent
59c90bfb38
commit
23b1b01f1a
@ -79,7 +79,7 @@ EOF
|
|||||||
# This leaves /dev/console mapped to tty0 (vga) which is reasonable default.
|
# This leaves /dev/console mapped to tty0 (vga) which is reasonable default.
|
||||||
syslinux_args="console=ttyS0,115200n8 ${common_args}"
|
syslinux_args="console=ttyS0,115200n8 ${common_args}"
|
||||||
|
|
||||||
cat <<EOF | sudo dd of="${SYSLINUX_DIR}/syslinux.cfg" 2>/dev/null
|
sudo_clobber "${SYSLINUX_DIR}/syslinux.cfg" <<EOF
|
||||||
SERIAL 0 115200
|
SERIAL 0 115200
|
||||||
PROMPT 0
|
PROMPT 0
|
||||||
TIMEOUT 0
|
TIMEOUT 0
|
||||||
@ -98,14 +98,15 @@ EOF
|
|||||||
# Different files are used so that the updater can only touch the file it
|
# Different files are used so that the updater can only touch the file it
|
||||||
# needs to for a given change. This will minimize any potential accidental
|
# needs to for a given change. This will minimize any potential accidental
|
||||||
# updates issues, hopefully.
|
# updates issues, hopefully.
|
||||||
cat <<EOF | sudo dd of="${SYSLINUX_DIR}/boot_kernel.cfg" 2>/dev/null
|
sudo_clobber "${SYSLINUX_DIR}/boot_kernel.cfg" <<EOF
|
||||||
label boot_kernel
|
label boot_kernel
|
||||||
menu label boot_kernel
|
menu label boot_kernel
|
||||||
kernel vmlinuz-boot_kernel
|
kernel vmlinuz-boot_kernel
|
||||||
append ${syslinux_args} root=gptprio:
|
append ${syslinux_args} root=gptprio:
|
||||||
EOF
|
EOF
|
||||||
info "Emitted ${SYSLINUX_DIR}/boot_kernel.cfg"
|
info "Emitted ${SYSLINUX_DIR}/boot_kernel.cfg"
|
||||||
cat <<EOF | sudo dd of="${SYSLINUX_DIR}/root.A.cfg" 2>/dev/null
|
|
||||||
|
sudo_clobber "${SYSLINUX_DIR}/root.A.cfg" <<EOF
|
||||||
label coreos.A
|
label coreos.A
|
||||||
menu label coreos.A
|
menu label coreos.A
|
||||||
kernel vmlinuz.A
|
kernel vmlinuz.A
|
||||||
@ -113,7 +114,7 @@ label coreos.A
|
|||||||
EOF
|
EOF
|
||||||
info "Emitted ${SYSLINUX_DIR}/root.A.cfg"
|
info "Emitted ${SYSLINUX_DIR}/root.A.cfg"
|
||||||
|
|
||||||
cat <<EOF | sudo dd of="${SYSLINUX_DIR}/root.B.cfg" 2>/dev/null
|
sudo_clobber "${SYSLINUX_DIR}/root.B.cfg" <<EOF
|
||||||
label coreos.B
|
label coreos.B
|
||||||
menu label coreos.B
|
menu label coreos.B
|
||||||
kernel vmlinuz.B
|
kernel vmlinuz.B
|
||||||
|
Loading…
Reference in New Issue
Block a user