configs/*/grub/grub.cfg: enable serial input and output
Try to initialize a serial device and use it for input and output. Add more comments to grub.cfg to explain what is done. Related to #75
This commit is contained in:
parent
fda1907581
commit
86540647db
@ -1,12 +1,12 @@
|
|||||||
|
# Load partition table and file system modules
|
||||||
insmod part_gpt
|
insmod part_gpt
|
||||||
insmod part_msdos
|
insmod part_msdos
|
||||||
insmod fat
|
insmod fat
|
||||||
insmod iso9660
|
insmod iso9660
|
||||||
|
|
||||||
|
# Use graphics-mode output
|
||||||
insmod all_video
|
insmod all_video
|
||||||
|
|
||||||
insmod font
|
insmod font
|
||||||
|
|
||||||
if loadfont "${prefix}/fonts/unicode.pf2" ; then
|
if loadfont "${prefix}/fonts/unicode.pf2" ; then
|
||||||
insmod gfxterm
|
insmod gfxterm
|
||||||
set gfxmode="auto"
|
set gfxmode="auto"
|
||||||
@ -14,10 +14,20 @@ if loadfont "${prefix}/fonts/unicode.pf2" ; then
|
|||||||
terminal_output gfxterm
|
terminal_output gfxterm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Enable serial console
|
||||||
|
if serial --unit=0 --speed=115200; then
|
||||||
|
terminal_input --append serial
|
||||||
|
terminal_output --append serial
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set default menu entry
|
||||||
default=archlinux
|
default=archlinux
|
||||||
timeout=15
|
timeout=15
|
||||||
timeout_style=menu
|
timeout_style=menu
|
||||||
|
|
||||||
|
|
||||||
|
# Menu entries
|
||||||
|
|
||||||
menuentry "Arch Linux (x86_64, UEFI)" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' {
|
menuentry "Arch Linux (x86_64, UEFI)" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' {
|
||||||
set gfxpayload=keep
|
set gfxpayload=keep
|
||||||
search --no-floppy --set=root --label %ARCHISO_LABEL%
|
search --no-floppy --set=root --label %ARCHISO_LABEL%
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
|
# Load partition table and file system modules
|
||||||
insmod part_gpt
|
insmod part_gpt
|
||||||
insmod part_msdos
|
insmod part_msdos
|
||||||
insmod fat
|
insmod fat
|
||||||
insmod iso9660
|
insmod iso9660
|
||||||
|
|
||||||
|
# Use graphics-mode output
|
||||||
insmod all_video
|
insmod all_video
|
||||||
|
|
||||||
insmod font
|
insmod font
|
||||||
|
|
||||||
if loadfont "${prefix}/fonts/unicode.pf2" ; then
|
if loadfont "${prefix}/fonts/unicode.pf2" ; then
|
||||||
insmod gfxterm
|
insmod gfxterm
|
||||||
set gfxmode="auto"
|
set gfxmode="auto"
|
||||||
@ -14,14 +14,22 @@ if loadfont "${prefix}/fonts/unicode.pf2" ; then
|
|||||||
terminal_output gfxterm
|
terminal_output gfxterm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Enable serial console
|
||||||
|
if serial --unit=0 --speed=115200; then
|
||||||
|
terminal_input --append serial
|
||||||
|
terminal_output --append serial
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set default menu entry
|
||||||
default=archlinux
|
default=archlinux
|
||||||
timeout=15
|
timeout=15
|
||||||
timeout_style=menu
|
timeout_style=menu
|
||||||
|
|
||||||
# GRUB init tune for accessibility
|
# GRUB init tune for accessibility
|
||||||
#
|
|
||||||
play 600 988 1 1319 4
|
play 600 988 1 1319 4
|
||||||
|
|
||||||
|
# Menu entries
|
||||||
|
|
||||||
menuentry "Arch Linux install medium (x86_64, UEFI)" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' {
|
menuentry "Arch Linux install medium (x86_64, UEFI)" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' {
|
||||||
set gfxpayload=keep
|
set gfxpayload=keep
|
||||||
search --no-floppy --set=root --label %ARCHISO_LABEL%
|
search --no-floppy --set=root --label %ARCHISO_LABEL%
|
||||||
|
Loading…
Reference in New Issue
Block a user