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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user