diff mbox series

nfs-utils: Add RDEPENDS netbase

Message ID 8c4681811ebba43537328a9b620c6dcb489654a6.1773912366.git.joerg.sommer@navimatix.de
State New
Headers show
Series nfs-utils: Add RDEPENDS netbase | expand

Commit Message

Jörg Sommer March 19, 2026, 9:26 a.m. UTC
From: Jörg Sommer <joerg.sommer@navimatix.de>

The package netbase has to be installed. Otherwise nfs-server.service fails
to start, because /etc/services is missing:

  sh[584]: nfsdctl: getaddrinfo of "(null)" failed: Servname not supported for ai_socktype
  sh[584]: nfsdctl: Error: Protocol not supported
  sh[584]: nfsdctl: Error: Invalid argument
  sh[583]: rpc.nfsd: unable to resolve ANYADDR:nfs: Servname not supported for ai_socktype
  sh[583]: rpc.nfsd: Unable to request RDMA services: Protocol not supported
  sh[583]: rpc.nfsd: unable to set any sockets for nfsd
  systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
---
 meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.5.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.5.bb
index 119e49e2a2..b75a48d60d 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.5.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.5.bb
@@ -9,7 +9,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84"
 
 # util-linux for libblkid
 DEPENDS = "libcap libevent util-linux sqlite3 libtirpc libxml2"
-RDEPENDS:${PN} = "${PN}-client"
+RDEPENDS:${PN} = "netbase ${PN}-client"
 RRECOMMENDS:${PN} = "kernel-module-nfsd"
 
 inherit useradd