-
Notifications
You must be signed in to change notification settings - Fork 366
Add "nfs" (and "network") initrd profiles #3766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
behrmann
merged 3 commits into
systemd:main
from
aafeijoo-suse:initrd-profiles-network-nfs
Jul 11, 2025
Merged
Add "nfs" (and "network") initrd profiles #3766
behrmann
merged 3 commits into
systemd:main
from
aafeijoo-suse:initrd-profiles-network-nfs
Jul 11, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88446ea
to
ffac73d
Compare
behrmann
approved these changes
Jun 11, 2025
septatrix
reviewed
Jun 12, 2025
mkosi/resources/mkosi-initrd/mkosi.profiles/nfs/mkosi.conf.d/fedora.conf
Outdated
Show resolved
Hide resolved
septatrix
reviewed
Jun 12, 2025
ffac73d
to
e2838d6
Compare
behrmann
reviewed
Jun 16, 2025
mkosi/resources/mkosi-initrd/mkosi.profiles/nfs/mkosi.conf.d/fedora.conf
Show resolved
Hide resolved
DaanDeMeyer
reviewed
Jun 24, 2025
...si.profiles/network/mkosi.extra/usr/lib/systemd/system-preset/10-mkosi-initrd-network.preset
Outdated
Show resolved
Hide resolved
e2838d6
to
af439f2
Compare
I am introducing initrd presets in systemd/systemd#38028 btw |
af439f2
to
3188a7d
Compare
DaanDeMeyer
reviewed
Jul 10, 2025
mkosi/resources/mkosi-initrd/mkosi.profiles/nfs/mkosi.conf.d/fedora.conf
Outdated
Show resolved
Hide resolved
...si.profiles/network/mkosi.extra/usr/lib/systemd/system-preset/10-mkosi-initrd-network.preset
Outdated
Show resolved
Hide resolved
This package contains some useful system utilities: sysctl, pidof, free, top...
3188a7d
to
07c0d1a
Compare
DaanDeMeyer
reviewed
Jul 10, 2025
This profile provides networking in the initrd using systemd-networkd.
nfs-utils-2.8.4 will provide its own nfsroot-generator [1] to allow mounting the real rootfs via NFSv4, so this initrd profile will enable this feature. [1] http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=ed86ea08dadafbac948c6a45629a6f3282a77233
07c0d1a
to
ecebb1f
Compare
DaanDeMeyer
approved these changes
Jul 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
nfs-utils-2.8.4 will provide its own nfsroot-generator [1] to allow mounting the real rootfs via NFSv4, so we can create an "nfs" initrd profile to support it. Also, this requires some type of networking in the initrd, so I also created a "network" profile to enable systemd-networkd.
Tested in openSUSE Tumbleweed using a custom OBS build [2] and in Fedora rawhide, since it already ships nfs-utils-2-8-4-rc2 [3].
[1] http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=ed86ea08dadafbac948c6a45629a6f3282a77233
[2] https://build.opensuse.org/package/show/home:afeijoo:branches:openSUSE:Factory:nfsroot/nfs-utils
[3] https://src.fedoraproject.org/rpms/nfs-utils/c/e7f85470bc0ba53a3338468f50ffc62bf0f03cba?branch=rawhide