From: Laszlo Gombos Date: Sat, 25 Nov 2023 03:42:20 +0000 (-0500) Subject: test(UEFI): make test determinsitic X-Git-Tag: 100~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a04736dfef4fbbed653d44db5a490cd6605bdfb;p=thirdparty%2Fdracut-ng.git test(UEFI): make test determinsitic identify the boot drive by id --- diff --git a/test/TEST-18-UEFI/test-init.sh b/test/TEST-18-UEFI/test-init.sh index 03966d2fc..b80e3918c 100755 --- a/test/TEST-18-UEFI/test-init.sh +++ b/test/TEST-18-UEFI/test-init.sh @@ -19,5 +19,5 @@ grep -q '^tmpfs /run tmpfs' /proc/self/mounts \ exec > /dev/console 2>&1 echo "made it to the rootfs! Powering down." -echo "dracut-root-block-success" | dd oflag=direct,dsync of=/dev/sdb +echo "dracut-root-block-success" | dd oflag=direct,dsync of=/dev/disk/by-id/ata-disk_marker poweroff -f diff --git a/test/TEST-18-UEFI/test.sh b/test/TEST-18-UEFI/test.sh index 4191fed5d..948782343 100755 --- a/test/TEST-18-UEFI/test.sh +++ b/test/TEST-18-UEFI/test.sh @@ -78,7 +78,7 @@ test_setup() { mkdir -p "$TESTDIR"/ESP/EFI/BOOT test_dracut \ --modules 'rootfs-block test' \ - --kernel-cmdline 'root=/dev/sdc ro rd.skipfsck rootfstype=squashfs' \ + --kernel-cmdline 'root=/dev/disk/by-id/ata-disk_root ro rd.skipfsck rootfstype=squashfs' \ --drivers 'ahci sd_mod squashfs' \ --uefi \ "$TESTDIR"/ESP/EFI/BOOT/BOOTX64.efi