ci-test-sample/debian/patches/0087-add-ext2-module-to-gru...

22 lines
1.1 KiB
Diff

From: =?utf-8?b?6LCi54Kc?= <xiewei@kylinos.cn>
Date: Wed, 3 Jun 2020 16:18:04 +0800
Subject: add ext2 module to grub.efi
---
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 af653ed..4f95d8f 100755
--- a/scripts/build/lb_binary_grub2-efi
+++ b/scripts/build/lb_binary_grub2-efi
@@ -338,7 +338,7 @@ if [ -n "${KY_EFI}" ];then
input_efi_dir=${KY_EFI}
core_efi_img=\$(mktemp)
efi_mount_tmp=\$(mktemp -d)
-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
+grub-mkimage -p /boot/grub -o \${core_efi_img} -O ${KY_EFI_NAME} -d \${input_efi_dir} ext2 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}