适配openkylin grub2 2.12, 不存在linuxefi模块时就不添加
This commit is contained in:
parent
7315c6290e
commit
83184edaa9
|
@ -1,3 +1,9 @@
|
||||||
|
live-build (3.0~a57-ok5) nile; urgency=medium
|
||||||
|
|
||||||
|
* 适配openkylin grub2 2.12, 不存在linuxefi模块时就不添加
|
||||||
|
|
||||||
|
-- Xie Wei <xiewei@kylinos.cn> Fri, 03 Nov 2023 18:18:43 +0800
|
||||||
|
|
||||||
live-build (3.0~a57-ok4) nile; urgency=medium
|
live-build (3.0~a57-ok4) nile; urgency=medium
|
||||||
|
|
||||||
* add depends dpkg-dev, apt-utils
|
* add depends dpkg-dev, apt-utils
|
||||||
|
|
|
@ -327,7 +327,10 @@ if [ -d chroot/usr/lib/grub/x86_64-efi ];then
|
||||||
KY_EFI_NAME="x86_64-efi"
|
KY_EFI_NAME="x86_64-efi"
|
||||||
KY_BOOT_EFI_NAME="BOOTX64.EFI"
|
KY_BOOT_EFI_NAME="BOOTX64.EFI"
|
||||||
KY_GRUB_EFI_NAME="grubx64.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
|
elif [ -d chroot/usr/lib/grub/arm64-efi ];then
|
||||||
KY_EFI="/usr/lib/grub/arm64-efi"
|
KY_EFI="/usr/lib/grub/arm64-efi"
|
||||||
KY_EFI_NAME="arm64-efi"
|
KY_EFI_NAME="arm64-efi"
|
||||||
|
|
Loading…
Reference in New Issue