1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-25 13:49:55 +03:00

test: make sure that sd-boot is installed before testing bootctl

bootctl can be installed also non uefi systems so its sole presence doesn't
mean that we can test installation of sd-boot.
This commit is contained in:
Franck Bui
2024-02-13 18:16:19 +01:00
parent 03b1e10fc8
commit 26fff16b90

View File

@ -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