diff options
Diffstat (limited to 'images')
-rw-r--r-- | images/NEWS | 2 | ||||
-rwxr-xr-x | images/make_boot_img | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/images/NEWS b/images/NEWS index fcaefa268..61e8e3325 100644 --- a/images/NEWS +++ b/images/NEWS @@ -1,3 +1,5 @@ +- honor BOOT_AUTOMATIC_METHOD env var for UEFI too + Version 2.21 - 7 April 2015 by Thomas Backlund - fix finding grub legacy files for hd_grub generation diff --git a/images/make_boot_img b/images/make_boot_img index 15ba799eb..8588850bd 100755 --- a/images/make_boot_img +++ b/images/make_boot_img @@ -357,6 +357,9 @@ sub boot_iso { my $efi_gfx = "gfxmenu gfxterm efi_gop efi_uga video video_bochs video_cirrus video_fb font png"; _ "/usr/bin/grub2-mkimage --prefix='/EFI/BOOT' -O x86_64-efi -o .boot_iso/EFI/BOOT/bootx64.efi $efi_core $efi_part_fs $efi_gfx"; _ "cp -f grub2.config .boot_iso/EFI/BOOT/grub.cfg"; + if ($ENV{BOOT_AUTOMATIC_METHOD}) { + _ "sed -i 's#\\(linux .*\\)#\\1 automatic=$ENV{BOOT_AUTOMATIC_METHOD}#' .boot_iso/EFI/BOOT/grub.cfg"; + } # add theme _ "cp -r /boot/grub2/{fonts,themes} .boot_iso/EFI/BOOT/"; _ "cp -f grub2.theme .boot_iso/EFI/BOOT/themes/maggy/theme.txt"; |