Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions base/images/vm-iso-installer/dracut-nfs.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Include dracut's NFS module in the live installer initrd.
#
# Without it, `root=live:nfs://<server>:/<path>/squashfs.img` fails: the kernel
# NFS modules ship in the initrd, but dmsquash-live/url-lib.sh only registers
# the NFS handler when `nfs_to_var` is present, and that helper comes from the
# dracut `nfs` module.
#
# kiwi builds the live initrd by running dracut inside this image root, so this
# drop-in is merged with kiwi's own 02-livecd.conf (dmsquash-live, livenet,
# pollcdrom). Both use `+=`, so the module lists accumulate.
add_dracutmodules+=" nfs "
12 changes: 12 additions & 0 deletions base/images/vm-iso-installer/vm-iso-installer.kiwi
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
name="azurelinux.conf"
target="/etc/anaconda/conf.d/azurelinux.conf"
permissions="0644" />
<file
name="dracut-nfs.conf"
target="/etc/dracut.conf.d/10-nfs.conf"
permissions="0644" />
<file
name="anaconda-launcher.sh"
target="/usr/local/bin/anaconda-launcher.sh"
Expand Down Expand Up @@ -108,6 +112,14 @@
<!-- ISO live boot (Fedora dmsquash-live) -->
<package name="dracut-live" />

<!-- NFS-served live root (root=live:nfs://...). dracut's 95nfs module
is skipped at initrd build time unless rpcbind, the nfs-utils
helpers (rpc.statd, mount.nfs, mount.nfs4) and sed are installed
in this image root. sed is otherwise only present transitively. -->
<package name="nfs-utils" />
<package name="rpcbind" />
<package name="sed" />

<!-- Hyper-V guest integration -->
<package name="hyperv-daemons" />

Expand Down