mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2025-12-06 07:12:01 +01:00
Before this patch a serial console was only enabled in syslinux for traditional BIOS, not in grub / UEFI. In traditional BIOS the baud rate was 38400 before. Today 38400 is rarely used anymore and most modern devices using a serial console default to 115200, which is the highest baudrate possible with the original UART-ICs. Modern UART-ICs usually support higher baudrates too, but they need a special driver for that. So 115200 is often used because of the wider compatibility. In grub and syslinux a serial console can fully work in parallel to the regular console. So enabling it doesn't change anything when nothing is connected to the serial console or no serial port is installed at all. This commit only touches the bootloaders, not the boot entries.
89 lines
3.3 KiB
INI
89 lines
3.3 KiB
INI
# Global options
|
|
set timeout=30
|
|
set default=0
|
|
set fallback=1
|
|
set pager=1
|
|
|
|
# Display settings
|
|
if loadfont /boot/grub/font.pf2 ; then
|
|
set gfxmode=640x480
|
|
set color_normal=black/cyan
|
|
set color_highlight=black/light-gray
|
|
set menu_color_normal=black/cyan
|
|
set menu_color_highlight=black/light-gray
|
|
insmod efi_gop
|
|
insmod efi_uga
|
|
insmod gfxterm
|
|
insmod all_video
|
|
insmod videotest
|
|
insmod videoinfo
|
|
terminal_output gfxterm
|
|
fi
|
|
|
|
# enable serial console with common settings (ttyS0, 115200 Baud, 8n1)
|
|
# this works in parallel to regular console
|
|
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
|
|
terminal_input --append serial
|
|
terminal_output --append serial
|
|
|
|
menuentry "Boot SystemRescue using default options" {
|
|
set gfxpayload=keep
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% %DEFAULT_KERNEL_PARAM%
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
|
}
|
|
|
|
menuentry "Boot SystemRescue and copy system to RAM (copytoram)" {
|
|
set gfxpayload=keep
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% %DEFAULT_KERNEL_PARAM% copytoram
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
|
}
|
|
|
|
menuentry "Boot SystemRescue and verify integrity of the medium (checksum)" {
|
|
set gfxpayload=keep
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% %DEFAULT_KERNEL_PARAM% checksum
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
|
}
|
|
|
|
menuentry "Boot SystemRescue using basic display drivers (nomodeset)" {
|
|
set gfxpayload=keep
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% %DEFAULT_KERNEL_PARAM% nomodeset
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
|
}
|
|
|
|
menuentry "Boot SystemRescue, do not activate md raid or lvm (nomdlvm)" {
|
|
set gfxpayload=keep
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% %DEFAULT_KERNEL_PARAM% nomdlvm
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
|
}
|
|
|
|
menuentry "Boot a Linux operating system installed on the disk (findroot)" {
|
|
set gfxpayload=keep
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% %DEFAULT_KERNEL_PARAM% findroot
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
|
}
|
|
|
|
menuentry "Stop during the boot process before mounting the root filesystem" {
|
|
set gfxpayload=keep
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% %DEFAULT_KERNEL_PARAM% break
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
|
}
|
|
|
|
menuentry "Start EFI Shell" {
|
|
insmod fat
|
|
insmod chain
|
|
terminal_output console
|
|
chainloader /EFI/shell.efi
|
|
}
|
|
|
|
menuentry "EFI Firmware setup" {
|
|
fwsetup
|
|
}
|
|
|
|
menuentry "Reboot" {
|
|
reboot
|
|
}
|
|
|
|
menuentry "Power off" {
|
|
halt
|
|
}
|