Skip to content

Commit

Permalink
Merge pull request #43 from MingliuYan/fix-rpcbind-runtime-issues
Browse files Browse the repository at this point in the history
rpcbind: fix a systemd dependency issue
  • Loading branch information
jsrc27 authored Mar 25, 2024
2 parents fa9ae0b + 647dff6 commit ab79e4b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 2a28043f82f781a5fdf988123f2309442964918d Mon Sep 17 00:00:00 2001
From: Ming Liu <[email protected]>
Date: Thu, 21 Mar 2024 14:01:12 +0100
Subject: [PATCH] rpcbind.service: run after systemd-tmpfiles-setup.service

This ensures /var/run present when rpcbind runs.

Upstream-Status: Inappropriate [OE specific]

Signed-off-by: Ming Liu <[email protected]>
---
systemd/rpcbind.service.in | 1 +
1 file changed, 1 insertion(+)

diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in
index f45ee1e..a707fc4 100644
--- a/systemd/rpcbind.service.in
+++ b/systemd/rpcbind.service.in
@@ -8,6 +8,7 @@ RequiresMountsFor=@statedir@
# rpcbind.socket, no matter how this unit is started.
Requires=rpcbind.socket
Wants=rpcbind.target
+After=systemd-tmpfiles-setup.service

[Service]
Type=notify
--
2.34.1

4 changes: 4 additions & 0 deletions recipes-extended/rpcbind/rpcbind_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"

SRC_URI:append:sota = " file://0001-rpcbind.service-run-after-systemd-tmpfiles-setup.patch"

# we are using nss-altfiles and /etc/passwd and related files are palced in
# /usr/lib/
PACKAGECONFIG:append = ' ${@bb.utils.contains("DISTRO_FEATURES", "stateless-system", "nss-altfiles", "", d)}'
Expand Down

0 comments on commit ab79e4b

Please sign in to comment.