commit:     4626e45f0c88b064e96086b8233fce620a9a2da9
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  1 20:18:04 2026 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Mar  1 20:19:22 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4626e45f

app-containers/lxc: fix fperms call on openrc init files

 - they're not installed at all with USE="systemd".

Closes: https://bugs.gentoo.org/970783
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-containers/lxc/lxc-6.0.6.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-containers/lxc/lxc-6.0.6.ebuild 
b/app-containers/lxc/lxc-6.0.6.ebuild
index 5e4fcf107aaf..1e29cd2d9f02 100644
--- a/app-containers/lxc/lxc-6.0.6.ebuild
+++ b/app-containers/lxc/lxc-6.0.6.ebuild
@@ -143,11 +143,11 @@ src_install() {
        # Replace upstream systemd files.
        if use systemd ; then
                rm -r "${D}$(systemd_get_systemunitdir)" || die "Failed to 
remove systemd lib dir"
+       else
+               # The openrc files aren't installed with correct permissions.
+               fperms 0755 /etc/init.d/lxc-{containers,net}
        fi
 
-       # The openrc files aren't installed with correct permissions.
-       fperms 0755 /etc/init.d/lxc-{containers,net}
-
        newinitd "${FILESDIR}/${PN}.initd.9" ${PN}
        systemd_newunit "${FILESDIR}"/lxc-monitord.service.5.0.0 
lxc-monitord.service
        systemd_newunit "${FILESDIR}"/lxc-net.service.5.0.0 lxc-net.service

Reply via email to