# Create what will eventually be the server root filesystem onto an overlay
"$DRACUT" -N --keep --tmpdir "$TESTDIR"/server/overlay \
--add-confdir test-root \
- -a "bash network-legacy nfs" \
+ -a "bash $USE_NETWORK nfs" \
--add-drivers "nfsd sunrpc lockd" \
-I "exportfs rpc.nfsd rpc.mountd dhcpd" \
--install-optional "/etc/netconfig /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/services /usr/etc/nsswitch.conf /usr/etc/rpc /usr/etc/protocols /usr/etc/services rpc.idmapd /etc/idmapd.conf" \
# Make server's dracut image
"$DRACUT" -i "$TESTDIR"/overlay / \
- -a "bash network-legacy ${SERVER_DEBUG:+debug}" \
+ -a "bash $USE_NETWORK ${SERVER_DEBUG:+debug}" \
--include ./server.link /etc/systemd/network/01-server.link \
--include ./wait-if-server.sh /lib/dracut/hooks/pre-mount/99-wait-if-server.sh \
--add-drivers "ext4" \
# Create what will eventually be the server root filesystem onto an overlay
"$DRACUT" -N --keep --tmpdir "$TESTDIR" \
--add-confdir test-root \
- -a network-legacy \
+ -a "$USE_NETWORK" \
-d "iscsi_tcp crc32c ipv6" \
-I "modprobe chmod ip setsid pidof tgtd tgtadm /etc/passwd" \
--install-optional "/etc/netconfig dhcpd /etc/group /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/services /usr/etc/nsswitch.conf /usr/etc/rpc /usr/etc/protocols /usr/etc/services" \
# Make server's dracut image
"$DRACUT" \
- -a "network-legacy" \
+ -a "$USE_NETWORK" \
--add-confdir test \
-d "piix ide-gd_mod ata_piix ext4 sd_mod drbg virtio_net virtio_pci virtio_scsi" \
-i "./server.link" "/etc/systemd/network/01-server.link" \
rm -rf -- "$TESTDIR"/overlay
"$DRACUT" -N --keep --tmpdir "$TESTDIR" \
--add-confdir test-root \
- -a "network-legacy iscsi" \
+ -a "$USE_NETWORK iscsi" \
-d "iscsi_tcp crc32c ipv6 af_packet" \
-I "ip grep sleep setsid chmod modprobe pidof tgtd tgtadm" \
--install-optional "/etc/netconfig dhcpd /etc/group /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/services /usr/etc/nsswitch.conf /usr/etc/rpc /usr/etc/protocols /usr/etc/services" \
# Make server's dracut image
"$DRACUT" -i "$TESTDIR"/overlay / \
--add-confdir test \
- -a "rootfs-block kernel-modules network-legacy ${SERVER_DEBUG:+debug}" \
+ -a "rootfs-block kernel-modules $USE_NETWORK ${SERVER_DEBUG:+debug}" \
-d "af_packet piix ide-gd_mod ata_piix ext4 sd_mod drbg virtio_net" \
-i "./server.link" "/etc/systemd/network/01-server.link" \
-i "./wait-if-server.sh" "/lib/dracut/hooks/pre-mount/99-wait-if-server.sh" \
"$DRACUT" --keep --tmpdir "$TESTDIR" \
--add-confdir test-root \
- -a "network-legacy" \
+ -a "$USE_NETWORK" \
-I "ip grep sleep nbd-server chmod modprobe pidof" \
--install-optional "/etc/netconfig dhcpd /etc/group /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/services /usr/etc/nsswitch.conf /usr/etc/rpc /usr/etc/protocols /usr/etc/services" \
-i /tmp/config /etc/nbd-server/config \
# devices, volume groups, encrypted partitions, etc.
"$DRACUT" -N -i "$TESTDIR"/overlay / \
--add-confdir test-makeroot \
- -a "network-legacy" \
+ -a "$USE_NETWORK" \
-i ./create-server-root.sh /lib/dracut/hooks/initqueue/01-create-server-root.sh \
--nomdadmconf \
--no-hostonly-cmdline -N \
"$DRACUT" -N -i "$TESTDIR"/overlay / \
--add-confdir test \
- -a "network-legacy ${SERVER_DEBUG:+debug}" \
+ -a "$USE_NETWORK ${SERVER_DEBUG:+debug}" \
-d "af_packet piix ide-gd_mod ata_piix ext4 sd_mod drbg virtio_net" \
-i "./server.link" "/etc/systemd/network/01-server.link" \
-i "./wait-if-server.sh" "/lib/dracut/hooks/pre-mount/99-wait-if-server.sh" \