RFC netroot: modular support for network root devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest9 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | nfsroot: move to same sort order as block methodsmodules.d/ modules.d/ modules.d/ +7 more | +183 | 2 replies | |
| 2/9 | block root: split out resume parsing and udev rulesmodules.d/ modules.d/ modules.d/ +3 more | +16 | 0 replies | |
| 3/9 | dracut: add cmdline hookdracut modules.d/ modules.d/ +1 more | +7 | 0 replies | |
| 4/9 | cmdline: cleanup handling and block: handlermodules.d/ modules.d/ modules.d/ +2 more | +42 | 8 replies | |
| 5/9 | resume: add support for labeled resume devicesmodules.d/ modules.d/ modules.d/ | +16 | 2 replies | |
| 6/9 | dracut-lib: add source_all to librarymodules.d/ modules.d/ | +6 | 0 replies | |
| 7/9 | netroot: add common handler for network root devicesdracut modules.d/ modules.d/ +4 more | +84 | 2 replies | |
| 8/9 | nfsroot: move to netroot frameworkmodules.d/ modules.d/ modules.d/ +3 more | +149 | 0 replies | |
| 9/9 | Add NBD supportmodules.d/ modules.d/ modules.d/ +2 more | +174 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/9] netroot: modular support for network root devices
This builds on the NFS root work to allow other network methods to hook into the parsing and network infrastructure. One network interface is configured at a time, but if we don't find a root there, it may not be unconfigured -- this should probably be added.
I implemented some of the legacy formats we talked about, but not all of them, and I may not have them 100% correct. That handling has seen less testing than the NFS methods I usually use. I have verified that this set will work with root=dhcp w/ NFS, and no root, but nbdroot= for NBD.
I think we can offer some support for LVM/LUKS over NBD, but that's low on my list at the moment -- it was more important to shine some light on this to see if it gets burned up. Documentation would be another high priority, as in the formats supported as well as the interfaces and expectations of the handlers.
David Dillow (9):
nfsroot: move to same sort order as block methods block root: split out resume parsing and udev rules
dracut: add cmdline hook
cmdline: cleanup handling and block: handler
resume: add support for labeled resume devices
dracut-lib: add source_all to library
netroot: add common handler for network root devices
nfsroot: move to netroot framework
Add NBD support
dracut | 2 +-
modules.d/40network/60-net.rules | 1 +
modules.d/40network/dhcp-fallback.sh | 14 +++
modules.d/40network/ifup | 8 +-
modules.d/40network/install | 2 +
modules.d/40network/netroot | 52 +++++++++
modules.d/40nfsroot/60-nfsroot.rules | 1 -
modules.d/40nfsroot/nfsroot | 125 ---------------------
modules.d/{40nfsroot => 95nbd}/check | 4 +-
modules.d/95nbd/install | 7 +
modules.d/95nbd/nbd-netroot.sh | 11 ++
modules.d/95nbd/nbdroot | 96 ++++++++++++++++
modules.d/95nbd/parse-nbdroot.sh | 49 ++++++++
modules.d/{40nfsroot => 95nfs}/check | 0
modules.d/{40nfsroot => 95nfs}/install | 10 +--
modules.d/95nfs/nfs-netroot.sh | 52 +++++++++
modules.d/95nfs/nfsroot | 82 ++++++++++++++
modules.d/{40nfsroot => 95nfs}/nfsroot-cleanup.sh | 0
modules.d/95nfs/parse-nfsroot.sh | 48 ++++++++
modules.d/95resume/install | 4 +-
modules.d/95resume/parse-resume.sh | 8 ++
modules.d/95resume/resume-genrules.sh | 8 ++
modules.d/95rootfs-block/block-genrules.sh | 10 ++
modules.d/95rootfs-block/genrules.sh | 14 ---
modules.d/95rootfs-block/install | 6 +-
modules.d/95rootfs-block/parse-block.sh | 16 +++
modules.d/95rootfs-block/parse-root-opts.sh | 21 +---
modules.d/99base/dracut-lib | 22 ++++
modules.d/99base/init | 31 ++++-
29 files changed, 522 insertions(+), 182 deletions(-)
create mode 100755 modules.d/40network/dhcp-fallback.sh
create mode 100755 modules.d/40network/netroot
delete mode 100644 modules.d/40nfsroot/60-nfsroot.rules
delete mode 100755 modules.d/40nfsroot/nfsroot
copy modules.d/{40nfsroot => 95nbd}/check (61%)
create mode 100755 modules.d/95nbd/install
create mode 100755 modules.d/95nbd/nbd-netroot.sh
create mode 100755 modules.d/95nbd/nbdroot
create mode 100755 modules.d/95nbd/parse-nbdroot.sh
rename modules.d/{40nfsroot => 95nfs}/check (100%)
rename modules.d/{40nfsroot => 95nfs}/install (83%)
create mode 100755 modules.d/95nfs/nfs-netroot.sh
create mode 100755 modules.d/95nfs/nfsroot
rename modules.d/{40nfsroot => 95nfs}/nfsroot-cleanup.sh (100%)
create mode 100755 modules.d/95nfs/parse-nfsroot.sh
create mode 100755 modules.d/95resume/resume-genrules.sh
create mode 100755 modules.d/95rootfs-block/block-genrules.sh
delete mode 100755 modules.d/95rootfs-block/genrules.sh
create mode 100755 modules.d/95rootfs-block/parse-block.sh--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html