mkosi: Don't try to install systemd-boot in non-efi images

When using mkosi's direct linux boot support, there's no EFI
system partition so don't try to install systemd-boot in that case.
This commit is contained in:
Daan De Meyer
2022-07-18 10:20:48 +02:00
parent a6e6b6954c
commit 2d2ac49787
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later
if [ "$1" = "final" ] && command -v bootctl > /dev/null; then
if [ "$1" = "final" ] && command -v bootctl > /dev/null && [ -d "/efi" ]; then
bootctl install
fi