summaryrefslogtreecommitdiffstats
path: root/boot-efi
diff options
context:
space:
mode:
authorWolfgang Müller2022-04-28 17:21:37 +0200
committerWolfgang Müller2022-04-28 17:21:37 +0200
commit71cd74069ebd85716384a7f3fb07bfc22218044d (patch)
tree455a8e98845bbed5c8b564c896f4a37141ef287c /boot-efi
parent58e458ae0330b021b1c318941dac35b5fbe2a928 (diff)
downloadportage-roles-71cd74069ebd85716384a7f3fb07bfc22218044d.tar.gz
boot-efi: Add profile for EFI booting
This enables systemd-boot support and includes a script that will automatically update the systemd bootloader every time the systemd package is updated.
Diffstat (limited to 'boot-efi')
-rw-r--r--boot-efi/env/sys-apps/systemd3
-rw-r--r--boot-efi/package.use/04-boot-efi1
2 files changed, 4 insertions, 0 deletions
diff --git a/boot-efi/env/sys-apps/systemd b/boot-efi/env/sys-apps/systemd
new file mode 100644
index 0000000..91b83b4
--- /dev/null
+++ b/boot-efi/env/sys-apps/systemd
@@ -0,0 +1,3 @@
+if test "${EBUILD_PHASE}" = "postinst"; then
+ bootctl --no-variables --graceful update
+fi
diff --git a/boot-efi/package.use/04-boot-efi b/boot-efi/package.use/04-boot-efi
new file mode 100644
index 0000000..0fe5888
--- /dev/null
+++ b/boot-efi/package.use/04-boot-efi
@@ -0,0 +1 @@
+sys-apps/systemd gnuefi