]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Don't try to install systemd-boot in non-efi images
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 15 Jul 2022 00:33:07 +0000 (02:33 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 18 Jul 2022 08:20:48 +0000 (10:20 +0200)
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

index 1f43eec2cc7c2ebfa0b804e95e2fd3fb05cf7807..6eddadfea8c4393207e0c88abeab48ae712cb978 100755 (executable)
@@ -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