[PATCH 0/2] systemd: Handle nfsroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux