mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user