From bac05644a7b5530dc7a9242458fed486cafef099 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 13 Sep 2021 18:14:05 +0200 Subject: [PATCH] test: specify the rootfs by label otherwise the boot might fail when attaching multiple SATA devices to the VM. --- test/test-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test-functions b/test/test-functions index c07073bf9da..6c9847a914a 100644 --- a/test/test-functions +++ b/test/test-functions @@ -410,7 +410,7 @@ run_qemu() { fi kernel_params+=( - "root=/dev/sda1" + "root=LABEL=systemd_boot" "rw" "raid=noautodetect" "rd.luks=0" @@ -1120,9 +1120,9 @@ EOF udevadm settle - local label=(-L systemd) + local label=(-L systemd_boot) # mkfs.reiserfs doesn't know -L. so, use --label instead - [[ "$FSTYPE" == "reiserfs" ]] && label=(--label systemd) + [[ "$FSTYPE" == "reiserfs" ]] && label=(--label systemd_boot) if ! mkfs -t "${FSTYPE}" "${label[@]}" "${LOOPDEV}p1" -q; then dfatal "Failed to mkfs -t ${FSTYPE}" exit 1