]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(UEFI): make test determinsitic
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 25 Nov 2023 03:42:20 +0000 (22:42 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 31 Mar 2024 02:15:27 +0000 (22:15 -0400)
identify the boot drive by id

test/TEST-18-UEFI/test-init.sh
test/TEST-18-UEFI/test.sh

index 03966d2fcb57453d3deeea0d121001a0467eaaa6..b80e3918c0c8f16c2a64cc0c6bce5ad3d657f287 100755 (executable)
@@ -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
index 4191fed5dc74f46d0612017fa4f9a4563aba2271..948782343b50342f6c102a3fb0ae06f73dfa479d 100755 (executable)
@@ -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