summaryrefslogtreecommitdiff
path: root/setup-disk.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2023-03-24 14:32:58 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2023-03-24 14:32:58 +0100
commitf37073e7b6144ee78dcb486e6ff19cd7e9db3a10 (patch)
tree9136a02548a5af450aa1443fe6e57161abd7002d /setup-disk.in
parent3bb128b908a92fccae0eeda494aff62509a4bf47 (diff)
downloadalpine-conf-f37073e7b6144ee78dcb486e6ff19cd7e9db3a10.zip
setup-disk: find msdos and fat efi partitions
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10555
Diffstat (limited to 'setup-disk.in')
-rwxr-xr-xsetup-disk.in10
1 files changed, 6 insertions, 4 deletions
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
}