From 65020dabefbcfb822759c969e8320f4a814322a1 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 26 Feb 2016 11:59:38 +0100 Subject: support grub custom initrd --- grub/09_linux | 6 ++++++ 1 file changed, 6 insertions(+) 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)" -- cgit v1.2.3-70-g09d2