aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-02-26 11:59:38 +0100
committerGravatar Christian Hesse <mail@eworm.de>2017-04-28 22:03:59 +0200
commit65020dabefbcfb822759c969e8320f4a814322a1 (patch)
tree51a801a80be39014e19be47d790b6d143ed71cd8
parentb5ad306ac967db3f3dace48952437b7729d31087 (diff)
downloadmkinitcpio-ykfde-65020dabefbcfb822759c969e8320f4a814322a1.tar.gz
mkinitcpio-ykfde-65020dabefbcfb822759c969e8320f4a814322a1.tar.zst
support grub custom initrdgrub-custom-initrd
-rwxr-xr-xgrub/09_linux6
1 files changed, 6 insertions, 0 deletions
diff --git a/grub/09_linux b/grub/09_linux
index 5fbef4c..0f7d83f 100755
--- a/grub/09_linux
+++ b/grub/09_linux
@@ -7,6 +7,12 @@ grub_mkconfig_dir="${sysconfdir}/grub.d"
source "${datarootdir}/grub/grub-mkconfig_lib"
+if grep -q 'GRUB_CUSTOM_INITRD' "${sysconfdir}/default/grub"; then
+ echo "# Your GRUB installation supports loading custom initramfs images."
+ echo "# Not adding extra boot entries for YKFDE."
+ exit 0
+fi
+
ykfde-cpio
YKFDE_CHALLENGES="$(make_system_path_relative_to_its_root /boot/ykfde-challenges.img)"