After commit
d36012143c7c ("test: use systemd inside client test rootfs
if available") and commit
4aaf8f24110f ("test: include systemd-journald
in client test rootfs") the test 60 on opensuse:latest fails due to not
enough memory on the server rootfs image.
So revert those two changes partially: create the server rootfs images
without systemd. Also create the client test rootfs without systemd.
test_setup() {
call_dracut --tmpdir "$TESTDIR" \
- --add-confdir test-root \
+ --add-confdir test-root --omit systemd \
-a "$USE_NETWORK url-lib nfs" \
-I "ip grep setsid" \
-f "$TESTDIR"/initramfs.root || return 1
# Create what will eventually be the server root filesystem onto an overlay
call_dracut --tmpdir "$TESTDIR"/server/overlay \
- --add-confdir test-root \
+ --add-confdir test-root --omit systemd \
-a "bash $USE_NETWORK nfs" \
--add-drivers "nfsd sunrpc lockd" \
-I "exportfs pidof rpc.nfsd rpc.mountd dhcpd" \
# Create what will eventually be the server root filesystem onto an overlay
call_dracut --tmpdir "$TESTDIR" \
- --add-confdir test-root \
+ --add-confdir test-root --omit systemd \
-a "$USE_NETWORK" \
-d "iscsi_tcp crc32c ipv6" \
-I "modprobe chmod ip setsid pidof tgtd tgtadm /etc/passwd" \
rm -rf -- "$TESTDIR"/overlay
call_dracut --tmpdir "$TESTDIR" \
- --add-confdir test-root \
+ --add-confdir test-root --omit systemd \
-a "$USE_NETWORK iscsi" \
-d "iscsi_tcp crc32c ipv6 af_packet" \
-I "ip grep sleep setsid chmod modprobe pidof tgtd tgtadm" \
EOF
call_dracut --keep --tmpdir "$TESTDIR" \
- --add-confdir test-root \
+ --add-confdir test-root --omit systemd \
-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" \
fi
# Use systemd if available
- if [[ -e "$systemdutildir"/systemd ]]; then
+ if [[ -e "$systemdutildir"/systemd ]] && ! [[ " $omit_dracutmodules " == *\ systemd\ * ]]; then
deps+=" systemd systemd-journald"
fi