mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-emulation/virt-firmware: add openrc service script
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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]"
|
||||
}
|
||||
@@ -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]"
|
||||
}
|
||||
Reference in New Issue
Block a user