From f37073e7b6144ee78dcb486e6ff19cd7e9db3a10 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Mar 2023 14:32:58 +0100 Subject: setup-disk: find msdos and fat efi partitions fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10555 --- setup-disk.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'setup-disk.in') diff --git a/setup-disk.in b/setup-disk.in index 20be60c..f7eb689 100755 --- a/setup-disk.in +++ b/setup-disk.in @@ -297,10 +297,12 @@ get_bootopt() { find_efi_directory() { local mnt="$1" dir= for dir in boot/efi boot; do - if [ "$(find_mount_fs "$mnt"/$dir)" = vfat ]; then - echo "$mnt"/$dir - return - fi + case "$(find_mount_fs "$mnt"/$dir)" in + vfat|fat|msdos) + echo "$mnt"/$dir + return + ;; + esac done return 1 } -- cgit v1.2.3