2023-02-21 11:42:20 +01:00
|
|
|
# SystemRescue main GRUB config file
|
|
|
|
|
|
|
|
|
|
# Note: This is set when we are loaded from loopback.cfg
|
|
|
|
|
if [ -z "$srcd_skip_init" ]; then
|
|
|
|
|
# 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
|
2019-02-02 12:22:52 +01:00
|
|
|
fi
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
if [ -z "$archiso_param" ]; then
|
|
|
|
|
archiso_param="archisolabel=%ARCHISO_LABEL%"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Placing menuentry commands inside an eval allows the value of variables
|
|
|
|
|
# like $archiso_param to be visible in the GRUB editor
|
|
|
|
|
eval "
|
2022-12-11 22:26:24 +01:00
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Boot SystemRescue using default options' {
|
2019-02-02 12:22:52 +01:00
|
|
|
set gfxpayload=keep
|
2023-02-21 11:42:20 +01:00
|
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% $archiso_param %DEFAULT_KERNEL_PARAM%
|
2020-09-13 21:26:56 +02:00
|
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
2019-02-02 12:22:52 +01:00
|
|
|
}
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Boot SystemRescue and copy system to RAM (copytoram)' {
|
2019-02-02 12:22:52 +01:00
|
|
|
set gfxpayload=keep
|
2023-02-21 11:42:20 +01:00
|
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% $archiso_param %DEFAULT_KERNEL_PARAM% copytoram
|
2020-09-13 21:26:56 +02:00
|
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
2019-02-02 12:22:52 +01:00
|
|
|
}
|
2020-04-13 15:39:22 +02:00
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Boot SystemRescue and verify integrity of the medium (checksum)' {
|
2020-04-13 15:39:22 +02:00
|
|
|
set gfxpayload=keep
|
2023-02-21 11:42:20 +01:00
|
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% $archiso_param %DEFAULT_KERNEL_PARAM% checksum
|
2020-09-13 21:26:56 +02:00
|
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
2020-04-13 15:39:22 +02:00
|
|
|
}
|
2020-05-17 09:43:27 +02:00
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Boot SystemRescue using basic display drivers (nomodeset)' {
|
2020-08-18 09:21:24 +02:00
|
|
|
set gfxpayload=keep
|
2023-02-21 11:42:20 +01:00
|
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% $archiso_param %DEFAULT_KERNEL_PARAM% nomodeset
|
2020-09-13 21:26:56 +02:00
|
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
2022-07-27 22:43:03 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Boot SystemRescue with serial console (ttyS0,115200n8)' {
|
2022-12-11 22:44:14 +01:00
|
|
|
set gfxpayload=keep
|
2023-02-21 11:42:20 +01:00
|
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% $archiso_param %DEFAULT_KERNEL_PARAM% console=tty0 console=ttyS0,115200n8
|
2022-12-11 22:44:14 +01:00
|
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Boot SystemRescue, do not activate md raid or lvm (nomdlvm)' {
|
2022-07-27 22:43:03 +02:00
|
|
|
set gfxpayload=keep
|
2023-02-21 11:42:20 +01:00
|
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% $archiso_param %DEFAULT_KERNEL_PARAM% nomdlvm
|
2022-07-27 22:43:03 +02:00
|
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
2020-08-18 09:21:24 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Boot a Linux operating system installed on the disk (findroot)' {
|
2020-05-17 09:43:27 +02:00
|
|
|
set gfxpayload=keep
|
2023-02-21 11:42:20 +01:00
|
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% $archiso_param %DEFAULT_KERNEL_PARAM% findroot
|
2020-09-13 21:26:56 +02:00
|
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
2020-05-17 09:43:27 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Stop during the boot process before mounting the root filesystem' {
|
2020-05-17 09:43:27 +02:00
|
|
|
set gfxpayload=keep
|
2023-02-21 11:42:20 +01:00
|
|
|
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% $archiso_param %DEFAULT_KERNEL_PARAM% break
|
2020-09-13 21:26:56 +02:00
|
|
|
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
2020-05-17 09:43:27 +02:00
|
|
|
}
|
2020-10-12 21:30:31 +02:00
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Memtest86+ memory tester for UEFI' {
|
2022-12-16 10:20:30 +01:00
|
|
|
insmod fat
|
|
|
|
|
set gfxpayload=800x600,1024x768
|
|
|
|
|
linux /EFI/memtest.efi keyboard=both
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Start EFI Shell' {
|
2020-10-12 21:30:31 +02:00
|
|
|
insmod fat
|
|
|
|
|
insmod chain
|
|
|
|
|
terminal_output console
|
|
|
|
|
chainloader /EFI/shell.efi
|
|
|
|
|
}
|
2020-10-22 08:37:15 +02:00
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'EFI Firmware setup' {
|
2020-10-22 08:37:15 +02:00
|
|
|
fwsetup
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Reboot' {
|
2020-10-22 08:37:15 +02:00
|
|
|
reboot
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-21 11:42:20 +01:00
|
|
|
menuentry 'Power off' {
|
2020-10-22 08:37:15 +02:00
|
|
|
halt
|
|
|
|
|
}
|
2023-02-21 11:42:20 +01:00
|
|
|
|
|
|
|
|
" # end eval
|