- test(SYSTEMD-INITRD): be more careful with `set -e` and subshells Resolves: RHEL-108215 From-source-git-commit: 4f77378e891e71d3a1fb95a89dee714ec746dc4c
137 lines
6.3 KiB
Diff
137 lines
6.3 KiB
Diff
From 88796914fa725c674196c63109fdc3fdae2f0e9d Mon Sep 17 00:00:00 2001
|
|
From: Pavel Valena <pvalena@redhat.com>
|
|
Date: Fri, 7 Feb 2025 08:37:27 +0100
|
|
Subject: [PATCH 08/30] build: upgrade to dracut 105
|
|
|
|
also add .dist/rebase.sh tool to help with rebases.
|
|
|
|
Resolves: RHEL-65204
|
|
---
|
|
test/TEST-60-NFS/test.sh | 3 ++-
|
|
test/TEST-61-MULTINIC/test.sh | 2 +-
|
|
test/TEST-62-BONDBRIDGEVLAN/test.sh | 2 +-
|
|
test/TEST-70-ISCSI/test.sh | 4 ++--
|
|
test/TEST-71-ISCSI-MULTI/test.sh | 4 ++--
|
|
test/TEST-72-NBD/test.sh | 6 +++---
|
|
6 files changed, 11 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/test/TEST-60-NFS/test.sh b/test/TEST-60-NFS/test.sh
|
|
index cd1689e4..f6efea36 100755
|
|
--- a/test/TEST-60-NFS/test.sh
|
|
+++ b/test/TEST-60-NFS/test.sh
|
|
@@ -375,8 +375,9 @@ test_setup() {
|
|
)
|
|
# Make server's dracut image
|
|
"$DRACUT" -i "$TESTDIR"/overlay / \
|
|
- -a "network-legacy ${SERVER_DEBUG:+debug}" \
|
|
+ -a "network ${SERVER_DEBUG:+debug}" \
|
|
-d "af_packet piix ide-gd_mod ata_piix ext4 sd_mod i6300esb virtio_net" \
|
|
+
|
|
--no-hostonly-cmdline -N \
|
|
-f "$TESTDIR"/initramfs.server "$KVERSION"
|
|
}
|
|
diff --git a/test/TEST-61-MULTINIC/test.sh b/test/TEST-61-MULTINIC/test.sh
|
|
index 367d7d24..5dcd931e 100755
|
|
--- a/test/TEST-61-MULTINIC/test.sh
|
|
+++ b/test/TEST-61-MULTINIC/test.sh
|
|
@@ -358,7 +358,7 @@ test_setup() {
|
|
)
|
|
# Make server's dracut image
|
|
"$DRACUT" -i "$TESTDIR"/overlay / \
|
|
- -m "bash rootfs-block kernel-modules watchdog qemu network-legacy ${SERVER_DEBUG:+debug}" \
|
|
+ -m "bash rootfs-block kernel-modules watchdog qemu network ${SERVER_DEBUG:+debug}" \
|
|
-d "af_packet piix ide-gd_mod ata_piix ext4 sd_mod nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files nfsd i6300esb virtio_net" \
|
|
--no-hostonly-cmdline -N \
|
|
-f "$TESTDIR"/initramfs.server "$KVERSION"
|
|
diff --git a/test/TEST-62-BONDBRIDGEVLAN/test.sh b/test/TEST-62-BONDBRIDGEVLAN/test.sh
|
|
index 5188c099..1f3878b1 100755
|
|
--- a/test/TEST-62-BONDBRIDGEVLAN/test.sh
|
|
+++ b/test/TEST-62-BONDBRIDGEVLAN/test.sh
|
|
@@ -393,7 +393,7 @@ test_setup() {
|
|
# Make server's dracut image
|
|
"$DRACUT" -i "$TESTDIR"/overlay / \
|
|
--no-early-microcode \
|
|
- -m "rootfs-block kernel-modules watchdog qemu network network-legacy ${SERVER_DEBUG:+debug}" \
|
|
+ -m "rootfs-block kernel-modules watchdog qemu network network ${SERVER_DEBUG:+debug}" \
|
|
-d "ipvlan macvlan af_packet piix ide-gd_mod ata_piix ext4 sd_mod nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files nfsd virtio-net i6300esb" \
|
|
--no-hostonly-cmdline -N \
|
|
-f "$TESTDIR"/initramfs.server "$KVERSION"
|
|
diff --git a/test/TEST-70-ISCSI/test.sh b/test/TEST-70-ISCSI/test.sh
|
|
index ff27da53..879b7bd8 100755
|
|
--- a/test/TEST-70-ISCSI/test.sh
|
|
+++ b/test/TEST-70-ISCSI/test.sh
|
|
@@ -173,7 +173,7 @@ test_setup() {
|
|
# 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" \
|
|
@@ -210,7 +210,7 @@ test_setup() {
|
|
|
|
# Make server's dracut image
|
|
"$DRACUT" \
|
|
- -a "test network-legacy" \
|
|
+ -a "test network" \
|
|
-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" \
|
|
-i ./wait-if-server.sh /lib/dracut/hooks/pre-mount/99-wait-if-server.sh \
|
|
diff --git a/test/TEST-71-ISCSI-MULTI/test.sh b/test/TEST-71-ISCSI-MULTI/test.sh
|
|
index 2950fc14..0c37c7cc 100755
|
|
--- a/test/TEST-71-ISCSI-MULTI/test.sh
|
|
+++ b/test/TEST-71-ISCSI-MULTI/test.sh
|
|
@@ -183,7 +183,7 @@ test_setup() {
|
|
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" \
|
|
@@ -228,7 +228,7 @@ test_setup() {
|
|
|
|
# Make server's dracut image
|
|
"$DRACUT" -i "$TESTDIR"/overlay / \
|
|
- -a "test rootfs-block kernel-modules network-legacy ${SERVER_DEBUG:+debug}" \
|
|
+ -a "test rootfs-block kernel-modules 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" \
|
|
diff --git a/test/TEST-72-NBD/test.sh b/test/TEST-72-NBD/test.sh
|
|
index e25f449e..3f05b09c 100755
|
|
--- a/test/TEST-72-NBD/test.sh
|
|
+++ b/test/TEST-72-NBD/test.sh
|
|
@@ -277,7 +277,7 @@ EOF
|
|
|
|
"$DRACUT" --keep --tmpdir "$TESTDIR" \
|
|
--add-confdir test-root \
|
|
- -a "network-legacy" \
|
|
+ -a "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 \
|
|
@@ -295,7 +295,7 @@ EOF
|
|
# 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 \
|
|
@@ -338,7 +338,7 @@ test_setup() {
|
|
-i "/tmp/key" "/etc/key"
|
|
|
|
"$DRACUT" -N -i "$TESTDIR"/overlay / \
|
|
- -a "test network-legacy ${SERVER_DEBUG:+debug}" \
|
|
+ -a "test 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" \
|
|
--
|
|
2.50.1
|
|
|