mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 16:41:11 +02:00
Merge pull request #281 from crawford/bootargs
configure_bootloaders: only add a single serial console boot arg
This commit is contained in:
commit
64dc62a01b
@ -83,7 +83,11 @@ configure_syslinux() {
|
|||||||
|
|
||||||
# Add ttyS0 as a secondary console, useful for qemu -nographic
|
# Add ttyS0 as a secondary console, useful for qemu -nographic
|
||||||
# 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}"
|
if [[ ${common_args} == *console=ttyS* ]] ; then
|
||||||
|
syslinux_args="${common_args}"
|
||||||
|
else
|
||||||
|
syslinux_args="console=ttyS0,115200n8 ${common_args}"
|
||||||
|
fi
|
||||||
|
|
||||||
sudo_clobber "${SYSLINUX_DIR}/syslinux.cfg" <<EOF
|
sudo_clobber "${SYSLINUX_DIR}/syslinux.cfg" <<EOF
|
||||||
SERIAL 0 115200
|
SERIAL 0 115200
|
||||||
|
Loading…
x
Reference in New Issue
Block a user