简化 grub.cfg 中的终端输出配置

This commit is contained in:
Ing 2024-12-29 10:15:56 +08:00
parent 523257ef27
commit d22175afa5

View File

@ -35,12 +35,8 @@ fi
if loadfont unicode; then if loadfont unicode; then
set gfxmode=auto set gfxmode=auto
if [ "${grub_platform}" = "efi" ]; then
terminal_output --append gfxterm
else
terminal_output gfxterm terminal_output gfxterm
fi fi
fi
if serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1; then if serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1; then
terminal_input --append serial terminal_input --append serial