diff options
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | grub/09_linux | 16 |
2 files changed, 17 insertions, 0 deletions
@@ -39,6 +39,7 @@ install-bin: bin/ykfde udev/ykfde $(MAKE) -C bin install $(MAKE) -C udev install $(INSTALL) -D -m0644 conf/ykfde.conf $(DESTDIR)/etc/ykfde.conf + $(INSTALL) -D -m0755 grub/09_linux $(DESTDIR)/etc/grub.d/09_linux $(INSTALL) -D -m0644 systemd/ykfde-cpio.service $(DESTDIR)/usr/lib/systemd/system/ykfde-cpio.service $(INSTALL) -D -m0644 systemd/ykfde-2f.service $(DESTDIR)/usr/lib/systemd/system/ykfde-2f.service $(INSTALL) -D -m0755 systemd/ykfde-2f $(DESTDIR)/usr/lib/systemd/scripts/ykfde-2f 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' --|" + |