From 2d2ac49787bb30c20a01e005f9e0aee7231d745c Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 15 Jul 2022 02:33:07 +0200 Subject: [PATCH] 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. --- mkosi.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3