/usr/share/lxcfs/lxc.mount.hook script is rendered with invalid "{{LXCFSTARGETDIR}}" macro substitution throughout the whole file: it's replaced with /var/lib/lib/lxcfs, while correct path would be /var/lib/lxcfs. https://github.com/lxc/lxcfs/blob/lxcfs-5.0.1/share/lxc.mount.hook.in#L18 /etc/conf.d/lxcfs is unmodified, with LXCFS_PATH="/var/lib/lxcfs". I've poked around a bit but don't yet understand what (and why) it's happening. Reproducible: Always
Created attachment 825801 [details] Example of lxc.mount.hook with incorrect paths
Oh, and this wrong path effectively means that lxcfs is silently not getting enabled for lxc containers where it is enabled via mount script hook.
Our meson.eclass sets: --localstatedir "${EPREFIX}/var/lib" and lxcfs's meson.build sets: conf.set_quoted('LXCFSTARGETDIR', join_paths(localstatedir, 'lib/lxcfs')) combined it becomes: ${EPREFIX}/var/lib/lib/lxcfs. Now I wonder who's in the wrong here. The eclass, upstream meson.build or me with the ebuilds trying to switch the directory into /var/lib/lxcfs. Gonna investigate this a bit more. Thanks for the report!
Filed bug #878913 - but I'm going to define it in the ebuild as a temporary fix.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97acc1924aeab37ac145082102cc83eacc76d6b1 commit 97acc1924aeab37ac145082102cc83eacc76d6b1 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-11-01 12:17:24 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-11-01 12:19:17 +0000 app-containers/lxc: define and fix --localstatedir Closes: https://bugs.gentoo.org/878603 Signed-off-by: Joonas Niilola <juippis@gentoo.org> app-containers/lxc/{lxc-5.0.1-r1.ebuild => lxc-5.0.1-r2.ebuild} | 2 ++ 1 file changed, 2 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cde0a13355f738dfaf3031ec81b47c5e7bb91a20 commit cde0a13355f738dfaf3031ec81b47c5e7bb91a20 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-11-01 11:19:04 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-11-01 12:19:17 +0000 sys-fs/lxcfs: define and fix --localstatedir Closes: https://bugs.gentoo.org/878603 Signed-off-by: Joonas Niilola <juippis@gentoo.org> sys-fs/lxcfs/{lxcfs-5.0.2-r1.ebuild => lxcfs-5.0.2-r2.ebuild} | 2 ++ 1 file changed, 2 insertions(+)