sys-apps/util-linux: uuidd fixes for OpenRC

The build system only installs the tmpfiles.d file when systemd is
enabled. Compensate by calling checkpath in the init script.

Closes: https://bugs.gentoo.org/932276
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert
2024-05-20 11:06:06 -04:00
parent 1f4ffed3cf
commit c41f012f4b
3 changed files with 9 additions and 4 deletions
+5
View File
@@ -8,3 +8,8 @@ pidfile=/run/uuidd/uuidd.pid
depend() {
need clock localmount
}
start_pre() {
checkpath -d -m 2755 -o uuidd:uuidd /run/uuidd &&
checkpath -d -m 0755 -o uuidd:uuidd /var/lib/libuuid
}
@@ -87,7 +87,7 @@ RDEPEND+="
)
uuidd? (
acct-user/uuidd
virtual/tmpfiles
systemd? ( virtual/tmpfiles )
)
!net-wireless/rfkill
"
@@ -426,7 +426,7 @@ pkg_postinst() {
elog "might want to add --noclear to your /etc/inittab lines."
fi
if use uuidd; then
if use systemd && use uuidd; then
tmpfiles_process uuidd-tmpfiles.conf
fi
}
+2 -2
View File
@@ -87,7 +87,7 @@ RDEPEND+="
)
uuidd? (
acct-user/uuidd
virtual/tmpfiles
systemd? ( virtual/tmpfiles )
)
!net-wireless/rfkill
"
@@ -425,7 +425,7 @@ pkg_postinst() {
elog "might want to add --noclear to your /etc/inittab lines."
fi
if use uuidd; then
if use systemd && use uuidd; then
tmpfiles_process uuidd-tmpfiles.conf
fi
}