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

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-15 02:33:07 +02:00
parent a6e6b6954c
commit 2d2ac49787

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