From: Zbigniew Jędrzejewski-Szmek Date: Sun, 19 May 2019 10:05:21 +0000 (+0200) Subject: test: search $BOOT for kernel+initrd X-Git-Tag: v243-rc1~404^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95cff2a7942badfe7d3fbf12a644749c3dc76b1d;p=thirdparty%2Fsystemd.git test: search $BOOT for kernel+initrd $BOOT is the preferred location for kernel images. If $BOOT does not exist, -x will print the path to ESP, so well fall back to previous behaviour. --- diff --git a/test/test-functions b/test/test-functions index 30b559097b8..0394076f0aa 100644 --- a/test/test-functions +++ b/test/test-functions @@ -14,7 +14,7 @@ NSPAWN_TIMEOUT="${NSPAWN_TIMEOUT:-infinity}" TIMED_OUT= # will be 1 after run_* if *_TIMEOUT is set and test timed out [[ "$LOOKS_LIKE_SUSE" ]] && FSTYPE="${FSTYPE:-btrfs}" || FSTYPE="${FSTYPE:-ext4}" UNIFIED_CGROUP_HIERARCHY="${UNIFIED_CGROUP_HIERARCHY:-default}" -EFI_MOUNT="$(bootctl -p 2>/dev/null || echo /boot)" +EFI_MOUNT="$(bootctl -x 2>/dev/null || echo /boot)" QEMU_MEM="${QEMU_MEM:-512M}" if ! ROOTLIBDIR=$(pkg-config --variable=systemdutildir systemd); then