mirror of
https://github.com/rancher/os.git
synced 2025-07-15 23:55:51 +00:00
make tty0 the default console
the last `console=` value becomes `/dev/console` (see https://www.kernel.org/doc/Documentation/serial-console.txt)
This commit is contained in:
parent
4b5f68b0f6
commit
1a1391112a
@ -78,7 +78,7 @@ set timeout="1"
|
||||
|
||||
menuentry "RancherOS-current" {
|
||||
set root=(hd0,msdos1)
|
||||
linux /boot/vmlinuz-${VERSION}-rancheros ${append_line} console=tty0 console=ttyS0
|
||||
linux /boot/vmlinuz-${VERSION}-rancheros ${append_line} console=ttyS0 console=tty0
|
||||
initrd /boot/initrd-${VERSION}-rancheros
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ if [ ! -z $ROLLBACK_VERSION ]; then
|
||||
cat >>$grub_cfg <<EOF
|
||||
menuentry "RancherOS-rollback" {
|
||||
set root=(hd0,msdos1)
|
||||
linux /boot/vmlinuz-${ROLLBACK_VERSION}-rancheros ${append_line} console=tty0 console=ttyS0
|
||||
linux /boot/vmlinuz-${ROLLBACK_VERSION}-rancheros ${append_line} console=ttyS0 console=tty0
|
||||
initrd /boot/initrd-${ROLLBACK_VERSION}-rancheros
|
||||
}
|
||||
EOF
|
||||
@ -116,7 +116,7 @@ hiddenmenu
|
||||
|
||||
title RancherOS ${VERSION}-(current)
|
||||
root (hd0)
|
||||
kernel /boot/vmlinuz-${VERSION}-rancheros ${append_line} console=tty0 console=ttyS0
|
||||
kernel /boot/vmlinuz-${VERSION}-rancheros ${append_line} console=ttyS0 console=tty0
|
||||
initrd /boot/initrd-${VERSION}-rancheros
|
||||
|
||||
EOF
|
||||
@ -126,7 +126,7 @@ if [ ! -z $ROLLBACK_VERSION ]; then
|
||||
cat >> $grub_file<<EOF
|
||||
title RancherOS ${ROLLBACK_VERSION}-(rollback)
|
||||
root (hd0)
|
||||
kernel /boot/vmlinuz-${ROLLBACK_VERSION}-rancheros ${append_line} console=tty0 console=ttyS0
|
||||
kernel /boot/vmlinuz-${ROLLBACK_VERSION}-rancheros ${append_line} console=ttyS0 console=tty0
|
||||
initrd /boot/initrd-${ROLLBACK_VERSION}-rancheros
|
||||
EOF
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user