diff --git a/debian/changelog b/debian/changelog index fd21034..6ec008b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +live-build (3.0~a57-ok5) nile; urgency=medium + + * 适配openkylin grub2 2.12, 不存在linuxefi模块时就不添加 + + -- Xie Wei Fri, 03 Nov 2023 18:18:43 +0800 + live-build (3.0~a57-ok4) nile; urgency=medium * add depends dpkg-dev, apt-utils diff --git a/scripts/build/lb_binary_grub2-efi b/scripts/build/lb_binary_grub2-efi index 63ecfe4..3d3c454 100755 --- a/scripts/build/lb_binary_grub2-efi +++ b/scripts/build/lb_binary_grub2-efi @@ -327,7 +327,10 @@ if [ -d chroot/usr/lib/grub/x86_64-efi ];then KY_EFI_NAME="x86_64-efi" KY_BOOT_EFI_NAME="BOOTX64.EFI" KY_GRUB_EFI_NAME="grubx64.efi" - GRUB_MODS="${GRUB_MODS} linuxefi" + if [ -f /usr/lib/grub/x86_64-efi/linuxefi.mod ] + then + GRUB_MODS="${GRUB_MODS} linuxefi" + fi elif [ -d chroot/usr/lib/grub/arm64-efi ];then KY_EFI="/usr/lib/grub/arm64-efi" KY_EFI_NAME="arm64-efi"