diff options
author | Christian Hesse <mail@eworm.de> | 2016-02-26 11:59:38 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-04-28 22:03:59 +0200 |
commit | 65020dabefbcfb822759c969e8320f4a814322a1 (patch) | |
tree | 51a801a80be39014e19be47d790b6d143ed71cd8 | |
parent | b5ad306ac967db3f3dace48952437b7729d31087 (diff) | |
download | mkinitcpio-ykfde-grub-custom-initrd.tar.gz mkinitcpio-ykfde-grub-custom-initrd.tar.zst |
support grub custom initrdgrub-custom-initrd
-rwxr-xr-x | grub/09_linux | 6 |
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)" |