Skip to content

systemd: Handle nfsroot

Antonio Alvarez Feijoo linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2systemd: Allow nfs-idmapd.service to be started without the serversystemd/nfs-idmapd.service+1 -11 reply
2/2systemd: Add a generator to mount /sysroot via NFSv4 in the initrd.gitignore systemd/Makefile.am systemd/nfs.systemd.man +3 more+320 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] systemd: Handle nfsroot

Every initrd generator (dracut, initramfs-tools, mkinitcpio, ...) has its own implementation of nfsroot, i.e., allow to mount the real root filesystem via NFS in the initrd.

The main goal of this patchset is to provide a common, centralized, simple and modern systemd implementation of nfsroot that can be used by any initrd generator. nfs-utils can easily provide it, and thus also improve the maintainability of this feature.

The initial idea is to support NFSv4 only.

The matching patch for dracut (on top of openSUSE Tumbleweed) would be:

https://github.com/aafeijoo-suse/dracut/commit/f737e382988e77bd650dbb4951ef6925644fb523

OBS build with this patchset and the dracut patch:

https://download.opensuse.org/repositories/home:/afeijoo:/branches:/openSUSE:/Factory:/nfsroot/openSUSE_Tumbleweed/

Antonio Alvarez Feijoo (2):
systemd: Allow nfs-idmapd.service to be started without the server
systemd: Add a generator to mount /sysroot via NFSv4 in the initrd

 .gitignore                  |   1 +
 systemd/Makefile.am         |   8 +-
 systemd/nfs-idmapd.service  |   2 +-
 systemd/nfs.systemd.man     |  62 +++++++--
 systemd/nfsroot-generator.c | 243 ++++++++++++++++++++++++++++++++++++
 systemd/systemd.c           |  16 ++-
 systemd/systemd.h           |   1 +
 7 files changed, 321 insertions(+), 12 deletions(-)
 create mode 100644 systemd/nfsroot-generator.c
Signature · 1 line
2.43.0