Changing loader kernel to log to tty2

This commit is contained in:
Fabio Belavenuto 2023-01-03 16:28:55 -03:00
parent 9635df6b8d
commit 41a38180f4
2 changed files with 6 additions and 5 deletions

View File

@ -29,7 +29,8 @@ null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
::sysinit:/etc/init.d/rcS
# Login in terminals
::respawn:/sbin/agetty -a root --noclear tty1
tty1::respawn:/sbin/agetty -a root --noclear tty1
tty2::askfirst:/sbin/agetty --noclear tty2
ttyS0::askfirst:/sbin/agetty -a root ttyS0 115200 linux
::respawn:/usr/bin/ttyd login -f root

View File

@ -51,7 +51,7 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
set timeout="1"
menuentry 'Boot DSM kernel directly' --id direct {
echo "Loading DSM kernel..."
linux /zImage-dsm console=ttyS0,115200n8 earlyprintk log_buf_len=32M earlycon=uart8250,io,0x3f8,115200n8 elevator=elevator root=/dev/md0 loglevel=15 ${dsm_cmdline}
linux /zImage-dsm console=ttyS0,115200n8 earlyprintk log_buf_len=32M earlycon=uart8250,io,0x3f8,115200n8 root=/dev/md0 loglevel=15 ${dsm_cmdline}
echo "Loading DSM initramfs..."
initrd /initrd-dsm
echo "Booting..."
@ -59,14 +59,14 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
fi
menuentry 'Boot DSM' --id boot {
echo "Loading kernel..."
linux /bzImage-arpl console=ttyS0,115200n8 quiet net.ifnames=0 biosdevname=0
linux /bzImage-arpl console=tty2 quiet net.ifnames=0 biosdevname=0
echo "Loading initramfs..."
initrd /initrd-arpl
echo "Booting..."
}
menuentry 'Force re-install DSM' --id junior {
echo "Loading kernel..."
linux /bzImage-arpl console=ttyS0,115200n8 quiet net.ifnames=0 biosdevname=0 force_junior
linux /bzImage-arpl console=tty2 quiet net.ifnames=0 biosdevname=0 force_junior
echo "Loading initramfs..."
initrd /initrd-arpl
echo "Booting..."
@ -77,7 +77,7 @@ fi
menuentry 'Configure loader' --id config {
echo "Loading kernel..."
linux /bzImage-arpl console=ttyS0,115200n8 quiet net.ifnames=0 biosdevname=0 IWANTTOCHANGETHECONFIG
linux /bzImage-arpl console=tty2 quiet net.ifnames=0 biosdevname=0 IWANTTOCHANGETHECONFIG
echo "Loading initramfs..."
initrd /initrd-arpl
echo "Booting..."