summaryrefslogtreecommitdiffstats
path: root/images/make_boot_img
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-04-13 08:40:12 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-04-13 17:46:15 +0200
commitb5bb5c8bc4a751c353a004df0adc50cc3d268db3 (patch)
tree36467c9d050f3d58edf3562547f825c289d93558 /images/make_boot_img
parent722ad19a2716ce13de4fe46cac1dccf4935afafc (diff)
downloaddrakx-b5bb5c8bc4a751c353a004df0adc50cc3d268db3.tar
drakx-b5bb5c8bc4a751c353a004df0adc50cc3d268db3.tar.gz
drakx-b5bb5c8bc4a751c353a004df0adc50cc3d268db3.tar.bz2
drakx-b5bb5c8bc4a751c353a004df0adc50cc3d268db3.tar.xz
drakx-b5bb5c8bc4a751c353a004df0adc50cc3d268db3.zip
honor BOOT_AUTOMATIC_METHOD env var for UEFI too
Diffstat (limited to 'images/make_boot_img')
-rwxr-xr-ximages/make_boot_img3
1 files changed, 3 insertions, 0 deletions
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";