mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
app-containers/incus: fix the previous attempt at systemd service files
Apparently "PassEnvironment" didn't work as planned, do the "Plan B" instead and just point EnvironmentFile at the /etc/env.d/90incus file. Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
parent
39b61680aa
commit
3926111315
@ -9,7 +9,7 @@ ExecStartPost=/usr/sbin/incusd waitready --timeout=600
|
||||
ExecStartPre=/bin/mkdir -p /var/log/incus
|
||||
ExecStartPre=/bin/chown -R root:incus-admin /var/log/incus
|
||||
KillMode=process
|
||||
PassEnvironment=INCUS_AGENT_PATH INCUS_EDK2_PATH
|
||||
EnvironmentFile=/etc/env.d/90incus
|
||||
PermissionsStartOnly=true
|
||||
TimeoutStartSec=600s
|
||||
TimeoutStopSec=30s
|
||||
@ -116,7 +116,7 @@ src_prepare() {
|
||||
-e "s:OVMF_VARS.ms.fd:OVMF_VARS.fd:g" \
|
||||
internal/server/instance/drivers/edk2/driver_edk2.go || die "Failed to fix hardcoded ovmf paths."
|
||||
|
||||
cp "${FILESDIR}"/incus-6.14.service "${T}"/incus.service || die
|
||||
cp "${FILESDIR}"/incus-6.14-r1.service "${T}"/incus.service || die
|
||||
if use apparmor; then
|
||||
sed -i \
|
||||
'/^EnvironmentFile=.*/a ExecStartPre=\/usr\/libexec\/lxc\/lxc-apparmor-load' \
|
||||
Loading…
x
Reference in New Issue
Block a user