# 2. INSTALLERFW_PARTX_MOUNTPOINT - mount point of partition number X
# (0 <= x < $INSTALLERFW_PART_COUNT)
# 3. INSTALLERFW_PARTX_PARTUUID - GPT GUID (AKA PARTUUID) of partition number X
-# 4. INSTALLERFW_PARTX_FSTYPE - which file-system format partition number X has
-# 5. INSTALLERFW_MOUNT_PREFIX - where the target partitions are mounted (the
+# 4. INSTALLERFW_MOUNT_PREFIX - where the target partitions are mounted (the
# "root" directory of the file-system we install gummiboot to)
PROG="setup-efi-ivi"
[ "${INSTALLERFW_PART_COUNT:+x}" == "x" ] ||
fatal "installer framework environment variables not found"
-# Find the root and boot paritions
+# Find the required root and boot parition parameters
pnum=0
root_partuuid=
-boot_fstype=
+boot_mountpoint=
while [ "$pnum" -lt "$INSTALLERFW_PART_COUNT" ]; do
mountpoint="INSTALLERFW_PART${pnum}_MOUNTPOINT"
root_partuuid="$(eval printf "%s" '$'$root_partuuid)"
# The boot parition has to be at "/boot"
elif [ "$mountpoint" == "/boot" ]; then
- boot_fstype="INSTALLERFW_PART${pnum}_FSTYPE"
- boot_fstype="$(eval printf "%s" '$'$boot_fstype)"
+ boot_mountpoint="$mountpoint"
fi
pnum="$((pnum+1))"
done
-# Make sure that the boot partition has a FAT file-system
-[ "$boot_fstype" == "vfat" ] || \
- fatal "boot partition has to have type \"vfat\""
-
# Get the ESP location
-esp="$INSTALLERFW_MOUNT_PREFIX/boot"
+esp="$INSTALLERFW_MOUNT_PREFIX/$boot_mountpoint"
# Make sure gummiboot is installed in the system
if ! ([ -f /usr/lib/gummiboot/gummibootia32.efi ] || \