During boot I get the following error messages: tmpfiles: ignoring invalid entry on line 3 of '/usr/lib/tmpfiles.d/tpm2-tss-fapi.conf' tmpfiles: ignoring invalid entry on line 5 of '/usr/lib/tmpfiles.d/tpm2-tss-fapi.conf' These are the lines in question: > sed -n '3p;5p' /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf a+ /var/lib/tpm2-tss/system/keystore - - - - default:group:tss:rwx a+ /run/tpm2-tss/eventlog - - - - default:group:tss:rwx
It's not broken and the entry is not invalid. It's just opentmpfiles being quality Gentoo software.
Just FYI, https://github.com/OpenRC/opentmpfiles/issues/5
Any news?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b98a2d6dc52987a23e6fcc29cfddd39216c9cdb commit 1b98a2d6dc52987a23e6fcc29cfddd39216c9cdb Author: William Hubbs <williamh@gentoo.org> AuthorDate: 2020-10-25 02:06:00 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2020-10-25 02:06:51 +0000 sys-apps/opentmpfiles: 0.3 bump Closes: https://bugs.gentoo.org/741216 Signed-off-by: William Hubbs <williamh@gentoo.org> sys-apps/opentmpfiles/Manifest | 1 + sys-apps/opentmpfiles/opentmpfiles-0.3.ebuild | 54 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+)
Now opentmpfiles-setup doesn't start: #/etc/init.d/opentmpfiles-setup start * Setting up tmpfiles.d entries ... Usage: setfacl [-bkndRLP] { -m|-M|-x|-X ... } file ... Try `setfacl --help' for more information. Usage: setfacl [-bkndRLP] { -m|-M|-x|-X ... } file ... Try `setfacl --help' for more information. [ !! ] * ERROR: opentmpfiles-setup failed to start
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b4408fdf598965cb3d49152c11427487821a93b commit 5b4408fdf598965cb3d49152c11427487821a93b Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-10-30 08:24:58 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-10-30 08:26:42 +0000 profiles/package.mask: mask latest opentmpfiles for more testing Bug: https://bugs.gentoo.org/751739 Bug: https://bugs.gentoo.org/741216 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> profiles/package.mask | 6 ++++++ 1 file changed, 6 insertions(+)
re-opening, as new opentmpfiles still broken.
ping, any update?
*** Bug 759490 has been marked as a duplicate of this bug. ***
FWIW hit this again the other day; afaik the only solutions are to mask recent tpm2-tss (don't remember if that conflicts with other things?) or complete the migration to systemd-tmpfiles.
Now the situation is messy. opentmpfiles is masked according to: - sys-apps/opentmpfiles-0.2::gentoo (masked by: package.mask) /usr/portage/profiles/base/package.mask: # Andreas K. Hüttel <dilfridge@gentoo.org> (2021-07-06) # Root privilege escalation, CVE-2017-18925, bug 751415 however if you instal it you got the usual error message when starting each of the two services. With: /etc/init.d/opentmpfiles-setup start or /etc/init.d/opentmpfiles-dev start you get # /etc/init.d/opentmpfiles-setup start * Caching service dependencies ... [ ok ] * Setting up tmpfiles.d entries ... tmpfiles: ignoring invalid entry on line 3 of `/usr/lib/tmpfiles.d/tpm2-tss-fapi.conf' tmpfiles: ignoring invalid entry on line 5 of `/usr/lib/tmpfiles.d/tpm2-tss-fapi.conf' [ !! ] * ERROR: opentmpfiles-setup failed to start # /etc/init.d/opentmpfiles-dev start * Caching service dependencies ... [ ok ] * Setting up tmpfiles.d entries for /dev ... tmpfiles: ignoring invalid entry on line 3 of `/usr/lib/tmpfiles.d/tpm2-tss-fapi.conf' tmpfiles: ignoring invalid entry on line 5 of `/usr/lib/tmpfiles.d/tpm2-tss-fapi.conf' [ !! ] * ERROR: opentmpfiles-dev failed to start I think I can't remove it as # equery d opentmpfiles * These packages depend on opentmpfiles: virtual/tmpfiles-0-r1 (sys-apps/opentmpfiles) AND # equery d tmpfiles * These packages depend on tmpfiles: app-admin/sudo-1.9.7_p1-r1 (virtual/tmpfiles) app-crypt/tpm2-tss-3.1.0 (virtual/tmpfiles) app-emulation/virtualbox-6.1.22 (virtual/tmpfiles) app-laptop/laptop-mode-tools-1.74 (virtual/tmpfiles) app-misc/screen-4.8.0-r3 (virtual/tmpfiles) app-portage/eix-0.35.2 (virtual/tmpfiles) dev-db/mysql-init-scripts-2.3-r3 (virtual/tmpfiles) dev-db/postgresql-13.3 (virtual/tmpfiles) dev-db/redis-6.2.4 (virtual/tmpfiles) dev-libs/cyrus-sasl-2.1.27-r4 (virtual/tmpfiles) dev-libs/kpathsea-6.3.3_p20210325 (virtual/tmpfiles) media-sound/pulseaudio-13.0-r1 (virtual/tmpfiles) net-nds/openldap-2.4.59-r1 (virtual/tmpfiles) sys-apps/openrc-0.43.3 (virtual/tmpfiles)
virtual/tmpfiles has RDEPEND=" || ( sys-apps/systemd-tmpfiles sys-apps/opentmpfiles sys-apps/systemd )" Just switch to sys-apps/systemd-tmpfiles will fix this problem
(In reply to Joakim Tjernlund from comment #12) > > Just switch to sys-apps/systemd-tmpfiles will fix this problem How can I do this? Just installing systemd-tmpfiles and removing opentmpfiles?
(In reply to Silvio from comment #13) > (In reply to Joakim Tjernlund from comment #12) > > > > > Just switch to sys-apps/systemd-tmpfiles will fix this problem > > How can I do this? Just installing systemd-tmpfiles and removing > opentmpfiles? Yes, systemd-tmpfiles is a replacement for opentmpfiles systemd-tmpfiles is extracted from systemd but does not depend on systemd so you can use it with openrc. I did this a while back
Since sys-apps/systemd-tmpfiles works just fine, I'll close this. Patches welcome to opentmpfiles.