ci-test-sample/debian/patches/0084-set-prefix-for-grub-mk...

22 lines
1.0 KiB
Diff

From: =?utf-8?b?6LCi54Kc?= <xiewei@kylinos.cn>
Date: Thu, 21 May 2020 14:24:08 +0800
Subject: set prefix for grub-mkimage
---
scripts/build/lb_binary_grub2-efi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/build/lb_binary_grub2-efi b/scripts/build/lb_binary_grub2-efi
index 05a93f9..4fbaf6a 100644
--- a/scripts/build/lb_binary_grub2-efi
+++ b/scripts/build/lb_binary_grub2-efi
@@ -319,7 +319,7 @@ if [ -n "${KY_EFI}" ];then
input_efi_dir=${KY_EFI}
core_efi_img=\$(mktemp)
efi_mount_tmp=\$(mktemp -d)
-grub-mkimage -o \${core_efi_img} -O ${KY_EFI_NAME} -d \${input_efi_dir} fat part_msdos part_gpt search_fs_uuid search_label search_fs_file search normal linux font all_video reboot configfile test iso9660
+grub-mkimage -p /boot/grub -o \${core_efi_img} -O ${KY_EFI_NAME} -d \${input_efi_dir} fat part_msdos part_gpt search_fs_uuid search_label search_fs_file search normal linux font all_video reboot configfile test iso9660
dd if=/dev/zero of=efi.img bs=1M count=100
mkfs.vfat efi.img
mount -o loop efi.img \${efi_mount_tmp}