diff options
author | Christian Hesse <mail@eworm.de> | 2016-01-18 14:26:42 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-01-18 14:26:42 +0100 |
commit | 4045941249c126915b1ac4e26c344195c673c22f (patch) | |
tree | cc9ac1699f27b46440b0b95fa69fdd8d8e361285 /grub/09_linux | |
parent | 334d3d667c5fd51a7ba08cf2a2e174cc6b99226c (diff) | |
download | mkinitcpio-ykfde-4045941249c126915b1ac4e26c344195c673c22f.tar.gz mkinitcpio-ykfde-4045941249c126915b1ac4e26c344195c673c22f.tar.zst |
add and install grub configuration
Diffstat (limited to 'grub/09_linux')
-rwxr-xr-x | grub/09_linux | 16 |
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' --|" + |