Merge branch 'boot-customize' into 'main'

add customization hooks to boot menus

See merge request systemrescue/systemrescue-sources!272
This commit is contained in:
Gerd v. Egidy 2023-03-11 21:25:42 +00:00
commit 9d3e6acaa1
5 changed files with 15 additions and 0 deletions

View file

@ -342,6 +342,7 @@ make_efi() {
s|%INSTALL_DIR%|${install_dir}|g" \
${script_path}/efiboot/grub/grubsrcd.cfg > ${work_dir}/iso/boot/grub/grubsrcd.cfg
cp ${script_path}/efiboot/grub/loopback.cfg ${work_dir}/iso/boot/grub/
cp ${script_path}/efiboot/grub/custom.cfg ${work_dir}/iso/boot/grub/
cp -a /usr/share/edk2-shell/${edk2arch}/Shell_Full.efi ${work_dir}/iso/EFI/shell.efi
cp ${work_dir}/${arch}/airootfs/boot/memtest86+/memtest.efi ${work_dir}/iso/EFI/memtest.efi
}

5
efiboot/grub/custom.cfg Normal file
View file

@ -0,0 +1,5 @@
# This file is intended for customizing the boot menu of SystemRescue
#
# Either edit this file on a writable media
# or use https://www.system-rescue.org/scripts/sysrescue-customize/ to replace it

View file

@ -87,6 +87,8 @@ menuentry 'Stop during the boot process before mounting the root filesystem' {
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
}
source /boot/grub/custom.cfg
menuentry 'Memtest86+ memory tester for UEFI' {
insmod fat
set gfxpayload=800x600,1024x768

View file

@ -0,0 +1,5 @@
# This file is intended for customizing the boot menu of SystemRescue
#
# Either edit this file on a writable media
# or use https://www.system-rescue.org/scripts/sysrescue-customize/ to replace it

View file

@ -73,4 +73,6 @@ LINUX boot/%ISO_ARCH%/vmlinuz
INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/%ISO_ARCH%/sysresccd.img
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% %DEFAULT_KERNEL_PARAM% break
INCLUDE boot/syslinux/sysresccd_custom.cfg
INCLUDE boot/syslinux/sysresccd_tail.cfg