app-emulation/virt-firmware: add openrc service script

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2024-03-16 09:04:00 +01:00
parent 8bb1882118
commit 9fbd94d535
3 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
#!/sbin/openrc-run
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="UKI Successful Boot"
start() {
kernel-bootcfg --boot-successful --update-csv || return 1
}

View File

@@ -35,6 +35,7 @@ python_install_all() {
doman man/*.1
doinitd "${FILESDIR}/kernel-bootcfg-boot-successful"
systemd_dounit systemd/kernel-bootcfg-boot-successful.service
exeinto /usr/lib/kernel/install.d
@@ -43,5 +44,5 @@ python_install_all() {
pkg_postinst() {
optfeature "managing UEFI entries on Unified Kernel Image installation and removal" \
"sys-boot/shim sys-kernel/installkernel[systemd]"
"sys-boot/shim sys-kernel/installkernel[systemd,uki]"
}

View File

@@ -42,6 +42,7 @@ python_install_all() {
doman man/*.1
doinitd "${FILESDIR}/kernel-bootcfg-boot-successful"
systemd_dounit systemd/kernel-bootcfg-boot-successful.service
exeinto /usr/lib/kernel/install.d
@@ -50,5 +51,5 @@ python_install_all() {
pkg_postinst() {
optfeature "managing UEFI entries on Unified Kernel Image installation and removal" \
"sys-kernel/installkernel[systemd]"
"sys-kernel/installkernel[systemd,uki]"
}