aboutsummaryrefslogtreecommitdiffstats
path: root/grub/09_linux
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-01-18 14:26:42 +0100
committerGravatar Christian Hesse <mail@eworm.de>2016-01-18 14:26:42 +0100
commit4045941249c126915b1ac4e26c344195c673c22f (patch)
treecc9ac1699f27b46440b0b95fa69fdd8d8e361285 /grub/09_linux
parent334d3d667c5fd51a7ba08cf2a2e174cc6b99226c (diff)
downloadmkinitcpio-ykfde-4045941249c126915b1ac4e26c344195c673c22f.tar.gz
mkinitcpio-ykfde-4045941249c126915b1ac4e26c344195c673c22f.tar.zst
add and install grub configuration
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' --|"
+