summaryrefslogtreecommitdiffstats
path: root/grub/09_linux
blob: 5fbef4c0807561bb8420ea583af4a510001cb214 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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' --|"