Commit 7de3db56 authored by Anton Midyukov's avatar Anton Midyukov

grub: Add support grub-pc for ISO bootloading

It is required to set the BOOTLOADER and BOOT_TYPE variables in grubpcboot.
parent 5e60c91a
...@@ -14,7 +14,7 @@ fi ...@@ -14,7 +14,7 @@ fi
if [ -z "$GLOBAL_EFI_BOOTLOADER" ]; then if [ -z "$GLOBAL_EFI_BOOTLOADER" ]; then
case "$GLOBAL_BOOTLOADER" in case "$GLOBAL_BOOTLOADER" in
ieee1275boot) ;; ieee1275boot|grubpcboot) ;;
*) rm -fr "$WORKDIR/boot" *) rm -fr "$WORKDIR/boot"
exit 0;; exit 0;;
esac esac
...@@ -31,12 +31,14 @@ fi ...@@ -31,12 +31,14 @@ fi
# number ordering sponsored by shell's pathname expansion # number ordering sponsored by shell's pathname expansion
case "$GLOBAL_BOOTLOADER" in case "$GLOBAL_BOOTLOADER" in
ieee1275boot) ieee1275boot)
grep -hv '^#' $(find .in/*.cfg -not -name *_efi.cfg -not -name *_bios.cfg) > "$CFG" ;;
grubpcboot)
grep -hv '^#' $(find .in/*.cfg -not -name *_efi.cfg) > "$CFG" ;; grep -hv '^#' $(find .in/*.cfg -not -name *_efi.cfg) > "$CFG" ;;
esac esac
if [ "$GLOBAL_EFI_BOOTLOADER" = "grub-efi" ]; then if [ "$GLOBAL_EFI_BOOTLOADER" = "grub-efi" ]; then
mkdir -p "$WORKDIR/EFI/BOOT" mkdir -p "$WORKDIR/EFI/BOOT"
grep -hv '^#' $(find .in/*.cfg) > "$CFG_EFI" grep -hv '^#' $(find .in/*.cfg -not -name *_bios.cfg) > "$CFG_EFI"
fi fi
# there should be DEFAULT directive there (at least for alterator-netinst) # there should be DEFAULT directive there (at least for alterator-netinst)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment