mirror of
https://github.com/system76/firmware-open.git
synced 2025-07-03 04:43:22 +00:00
scripts: Fix flashing without systemd-boot
Set `EFI_PATH` to `/boot/efi` as a default for systems that do not have bootctl from systemd-boot. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
parent
29f1352365
commit
7c15b7dacb
1 changed files with 6 additions and 1 deletions
|
@ -51,7 +51,12 @@ then
|
|||
fi
|
||||
|
||||
# Locate EFI partition mount path
|
||||
EFI_PATH="$(bootctl --print-esp-path)"
|
||||
EFI_PATH="${EFI_PATH:-/boot/efi}"
|
||||
if command -v bootctl >/dev/null 2>&1
|
||||
then
|
||||
EFI_PATH="$(bootctl --print-esp-path)"
|
||||
fi
|
||||
|
||||
if [ -z "${EFI_PATH}" ] || [ ! -d "${EFI_PATH}" ]
|
||||
then
|
||||
echo "EFI system partition '${EFI_PATH}' not found" >&2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue