mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2025-12-06 07:12:01 +01:00
Added edk2-shell boot entry in UEFI boot menu (#159)
This commit is contained in:
parent
6b737d30b1
commit
97c1cee96b
|
|
@ -11,10 +11,10 @@ https://gitlab.archlinux.org/archlinux/archiso/
|
|||
SystemRescue can be built for x86_64 or i686 architectures. It must be built
|
||||
on archlinux if you want to build a 64bit edition, or archlinux32 if you want
|
||||
to create a 32bit edition. The following packages must be installed on the
|
||||
build system: archiso, grub, mtools. You need to use a modified version of
|
||||
archiso for the build to work and for additional fixes and features to be
|
||||
present. You can find the required archiso version and patches in the "patches"
|
||||
folder in this git repository.
|
||||
build system: archiso, grub, mtools, edk2-shell. You need to use a modified
|
||||
version of archiso for the build to work and for additional fixes and features
|
||||
to be present. You can find the required archiso version and patches in the
|
||||
"patches" folder in this git repository.
|
||||
|
||||
The package list contains packages which are not part of the official binary
|
||||
package repositories. These packages need to be built from sources from the AUR
|
||||
|
|
|
|||
3
build.sh
3
build.sh
|
|
@ -27,10 +27,12 @@ case ${arch} in
|
|||
x86_64)
|
||||
efiarch="x86_64-efi"
|
||||
efiboot="bootx64.efi"
|
||||
edk2arch="x64"
|
||||
;;
|
||||
i686)
|
||||
efiarch="i386-efi"
|
||||
efiboot="bootia32.efi"
|
||||
edk2arch="ia32"
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unsupported architecture: '${arch}'"
|
||||
|
|
@ -191,6 +193,7 @@ make_efi() {
|
|||
s|%ISO_ARCH%|${arch}|g;
|
||||
s|%INSTALL_DIR%|${install_dir}|g" \
|
||||
${script_path}/efiboot/grub/grubsrcd.cfg > ${work_dir}/iso/boot/grub/grubsrcd.cfg
|
||||
cp -a /usr/share/edk2-shell/${edk2arch}/Shell_Full.efi ${work_dir}/iso/EFI/shell.efi
|
||||
}
|
||||
|
||||
# Prepare efiboot.img::/EFI for "El Torito" EFI boot mode
|
||||
|
|
|
|||
|
|
@ -55,3 +55,10 @@ menuentry "Stop during the boot process before mounting the root filesystem" {
|
|||
linux /%INSTALL_DIR%/boot/%ISO_ARCH%/vmlinuz archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% break
|
||||
initrd /%INSTALL_DIR%/boot/intel_ucode.img /%INSTALL_DIR%/boot/amd_ucode.img /%INSTALL_DIR%/boot/%ISO_ARCH%/sysresccd.img
|
||||
}
|
||||
|
||||
menuentry "EFI Shell" {
|
||||
insmod fat
|
||||
insmod chain
|
||||
terminal_output console
|
||||
chainloader /EFI/shell.efi
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue