]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
revert(test): exclude systemd from server rootfs
authorBenjamin Drung <benjamin.drung@canonical.com>
Tue, 27 Jan 2026 19:19:12 +0000 (20:19 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 27 Jan 2026 20:02:15 +0000 (15:02 -0500)
The network tests need systemd when they use systemd-networkd for
networking. The tests will fail with:

```
dracut[E]: Module 'systemd-networkd' depends on module 'systemd', which can't be installed
```

This reverts commit 30894ad4855018f6ec07664ce06bf5557d65e324.

test/TEST-60-NFS/test.sh
test/TEST-70-ISCSI/test.sh
test/TEST-71-ISCSI-MULTI/test.sh
test/TEST-72-NBD/test.sh
test/modules.d/70test-root/module-setup.sh

index 81500550877482abf1f5e00c808e83f58959dfb6..398bb3cc32feba284afcf828b100cf356cc27fba 100755 (executable)
@@ -221,7 +221,7 @@ test_run() {
 
 test_setup() {
     call_dracut --tmpdir "$TESTDIR" \
-        --add-confdir test-root --omit systemd \
+        --add-confdir test-root \
         -a "$USE_NETWORK url-lib nfs" \
         -I "ip grep setsid" \
         -f "$TESTDIR"/initramfs.root || return 1
@@ -230,7 +230,7 @@ test_setup() {
 
     # Create what will eventually be the server root filesystem onto an overlay
     call_dracut --tmpdir "$TESTDIR"/server/overlay \
-        --add-confdir test-root --omit systemd \
+        --add-confdir test-root \
         -a "bash $USE_NETWORK nfs" \
         --add-drivers "nfsd sunrpc lockd" \
         -I "exportfs pidof rpc.nfsd rpc.mountd dhcpd" \
index 5053223e81782b2e8df4680dcfeb6432b716b66c..4e926a32ad269ed6e80a34ffc0f0f4e4c2b851b9 100755 (executable)
@@ -164,7 +164,7 @@ test_setup() {
 
     # Create what will eventually be the server root filesystem onto an overlay
     call_dracut --tmpdir "$TESTDIR" \
-        --add-confdir test-root --omit systemd \
+        --add-confdir test-root \
         -a "$USE_NETWORK" \
         -d "iscsi_tcp crc32c ipv6" \
         -I "modprobe chmod ip setsid pidof tgtd tgtadm /etc/passwd" \
index 94ba192df8e15af28d9fdcf1567ef972a822ab17..d5d497df8d63907dacfa717c552c386bf57b44ce 100755 (executable)
@@ -173,7 +173,7 @@ test_setup() {
 
     rm -rf -- "$TESTDIR"/overlay
     call_dracut --tmpdir "$TESTDIR" \
-        --add-confdir test-root --omit systemd \
+        --add-confdir test-root \
         -a "$USE_NETWORK iscsi" \
         -d "iscsi_tcp crc32c ipv6 af_packet" \
         -I "ip grep sleep setsid chmod modprobe pidof tgtd tgtadm" \
index 947fd54832c9548937d2d6cb58d374b56246605c..3d2c6824117a079c1e51401daa01d80ca7100b2b 100755 (executable)
@@ -261,7 +261,7 @@ bs = 4096
 EOF
 
     call_dracut --keep --tmpdir "$TESTDIR" \
-        --add-confdir test-root --omit systemd \
+        --add-confdir test-root \
         -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" \
index 3750013b890ae0cae15f26ffa2e7a64cb0c408ad..bcd9a0e0fa6e80a75671a47ad8994d99f6b5d4cb 100755 (executable)
@@ -14,7 +14,7 @@ depends() {
     fi
 
     # Use systemd if available
-    if [[ -e "$systemdutildir"/systemd ]] && ! [[ " $omit_dracutmodules " == *\ systemd\ * ]]; then
+    if [[ -e "$systemdutildir"/systemd ]]; then
         deps+=" systemd systemd-journald"
     fi