public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] systemd: Handle nfsroot
@ 2025-05-22  6:59 Antonio Alvarez Feijoo
  2025-05-22  6:59 ` [PATCH 1/2] systemd: Allow nfs-idmapd.service to be started without the server Antonio Alvarez Feijoo
  2025-05-22  6:59 ` [PATCH 2/2] systemd: Add a generator to mount /sysroot via NFSv4 in the initrd Antonio Alvarez Feijoo
  0 siblings, 2 replies; 5+ messages in thread
From: Antonio Alvarez Feijoo @ 2025-05-22  6:59 UTC (permalink / raw)
  To: linux-nfs; +Cc: Antonio Alvarez Feijoo

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

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-05 10:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-22  6:59 [PATCH 0/2] systemd: Handle nfsroot Antonio Alvarez Feijoo
2025-05-22  6:59 ` [PATCH 1/2] systemd: Allow nfs-idmapd.service to be started without the server Antonio Alvarez Feijoo
2025-06-05 10:53   ` Steve Dickson
2025-05-22  6:59 ` [PATCH 2/2] systemd: Add a generator to mount /sysroot via NFSv4 in the initrd Antonio Alvarez Feijoo
2025-06-05 10:53   ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox