From: Daan De Meyer Date: Fri, 15 Jul 2022 00:33:07 +0000 (+0200) Subject: mkosi: Don't try to install systemd-boot in non-efi images X-Git-Tag: v252-rc1~618^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d2ac49787bb30c20a01e005f9e0aee7231d745c;p=thirdparty%2Fsystemd.git 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. --- diff --git a/mkosi.postinst b/mkosi.postinst index 1f43eec2cc7..6eddadfea8c 100755 --- a/mkosi.postinst +++ b/mkosi.postinst @@ -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