]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: make sure that sd-boot is installed before testing bootctl
authorFranck Bui <fbui@suse.com>
Tue, 13 Feb 2024 17:16:19 +0000 (18:16 +0100)
committerFranck Bui <fbui@suse.com>
Tue, 13 Feb 2024 17:16:23 +0000 (18:16 +0100)
bootctl can be installed also non uefi systems so its sole presence doesn't
mean that we can test installation of sd-boot.

test/units/testsuite-74.bootctl.sh

index 61373b506e4bc7c1a2d1adf315f5ca497007df94..4be7bfd0b8f380df923c7e45638c33321bf74088 100755 (executable)
@@ -13,6 +13,11 @@ if ! command -v bootctl >/dev/null; then
     exit 0
 fi
 
+if [[ ! -d /usr/lib/systemd/boot/efi ]]; then
+    echo "sd-boot is not installed, skipping."
+    exit 0
+fi
+
 # shellcheck source=test/units/util.sh
 . "$(dirname "$0")"/util.sh