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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user