summaryrefslogtreecommitdiffstats
path: root/grub/09_linux
diff options
context:
space:
mode:
Diffstat (limited to 'grub/09_linux')
-rwxr-xr-xgrub/09_linux16
1 files changed, 16 insertions, 0 deletions
diff --git a/grub/09_linux b/grub/09_linux
new file mode 100755
index 0000000..5fbef4c
--- /dev/null
+++ b/grub/09_linux
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+prefix="/usr"
+datarootdir="${prefix}/share"
+sysconfdir="/etc"
+grub_mkconfig_dir="${sysconfdir}/grub.d"
+
+source "${datarootdir}/grub/grub-mkconfig_lib"
+
+ykfde-cpio
+YKFDE_CHALLENGES="$(make_system_path_relative_to_its_root /boot/ykfde-challenges.img)"
+
+source "${grub_mkconfig_dir}/10_linux" | sed \
+ -e "/\\s*initrd/s|$| ${YKFDE_CHALLENGES}|" \
+ -e "/\\s*menuentry/s|menuentry '\\(.*\\)' --|menuentry '\\1 for YKFDE' --|"
+