Skip to content

Commit

Permalink
app-containers/lxd: fix systemd service file for 4.0.9
Browse files Browse the repository at this point in the history
 - the previous settings caused some runtime issues, with apparently
   mixed process ownerships.

Reported-by: telans
Thanks-to: telans
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
juippis committed Feb 20, 2022
1 parent 2d09a14 commit 5a48ee5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Requires=network-online.target lxcfs.service lxd.socket
Documentation=man:lxd(1)

[Service]
Group=lxd
User=root
EnvironmentFile=-/etc/environment
ExecStart=/usr/sbin/lxd --group lxd --syslog
ExecStartPost=/usr/sbin/lxd waitready --timeout=600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ src_prepare() {
lxd/apparmor/instance_qemu.go \
lxd/instance/drivers/driver_qemu.go || die "Failed to fix hardcoded ovmf paths."

cp "${FILESDIR}"/lxd-4.0.9.service "${T}"/lxd.service || die
cp "${FILESDIR}"/lxd-4.0.9-r1.service "${T}"/lxd.service || die
if use apparmor; then
sed -i \
'/^EnvironmentFile=.*/a ExecStartPre=\/usr\/libexec\/lxc\/lxc-apparmor-load' \
Expand Down

0 comments on commit 5a48ee5

Please sign in to comment.