2013-04-06 16:41:21 +02:00
|
|
|
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
|
Subject: detect linuxefi/initrdefi secure bootloaders too
|
|
|
|
Reference: bnc#810912
|
|
|
|
|
|
|
|
Recognize initrdefi and linuxefi too. Whether linux/initrd or
|
|
|
|
linuxefi/initrdefi will be emitted is controlled by SECURE_BOOT
|
|
|
|
setting in /etc/sysconfig/bootloader.
|
2023-01-03 03:35:40 +01:00
|
|
|
---
|
|
|
|
linux-boot-probes/mounted/common/40grub2 | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
--- a/linux-boot-probes/mounted/common/40grub2
|
|
|
|
+++ b/linux-boot-probes/mounted/common/40grub2
|
|
|
|
@@ -71,7 +71,7 @@
|
2013-04-06 16:41:21 +02:00
|
|
|
ignore_item=1
|
|
|
|
fi
|
|
|
|
;;
|
2013-06-19 04:22:25 +02:00
|
|
|
- linux)
|
|
|
|
+ linux|linuxefi)
|
|
|
|
# Hack alert: sed off any (hdn,n) but
|
|
|
|
# assume the kernel is on the same
|
|
|
|
# partition.
|
2023-01-03 03:35:40 +01:00
|
|
|
@@ -84,7 +84,7 @@
|
2013-04-06 16:41:21 +02:00
|
|
|
kernel="/boot$kernel"
|
|
|
|
fi
|
|
|
|
;;
|
2013-06-19 04:22:25 +02:00
|
|
|
- initrd)
|
|
|
|
+ initrd|initrdefi)
|
2023-01-03 03:35:40 +01:00
|
|
|
shift
|
|
|
|
initrd=""
|
|
|
|
for initrd_path in "$@"; do
|