bsdinstall: default to UEFI-only boot on arm64
Reviewed by: allanjude Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D11721
This commit is contained in:
parent
055e2653d4
commit
e39a96781e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321734
@ -1554,8 +1554,16 @@ f_dprintf "BSDINSTALL_TMPETC=[%s]" "$BSDINSTALL_TMPETC"
|
||||
f_dprintf "FSTAB_FMT=[%s]" "$FSTAB_FMT"
|
||||
|
||||
#
|
||||
# If the system was booted with UEFI, set the default boot type to UEFI
|
||||
# Determine default boot type
|
||||
#
|
||||
case $(uname -m) in
|
||||
arm64)
|
||||
# We support only UEFI boot for arm64
|
||||
: ${ZFSBOOT_BOOT_TYPE:=UEFI}
|
||||
: ${ZFSBOOT_PARTITION_SCHEME:=GPT}
|
||||
;;
|
||||
*)
|
||||
# If the system was booted with UEFI, set the default boot type to UEFI
|
||||
bootmethod=$( sysctl -n machdep.bootmethod )
|
||||
f_dprintf "machdep.bootmethod=[%s]" "$bootmethod"
|
||||
if [ "$bootmethod" = "UEFI" ]; then
|
||||
@ -1565,6 +1573,8 @@ else
|
||||
: ${ZFSBOOT_BOOT_TYPE:=BIOS}
|
||||
: ${ZFSBOOT_PARTITION_SCHEME:=GPT}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#
|
||||
# Loop over the main menu until we've accomplished what we came here to do
|
||||
|
Loading…
Reference in New Issue
Block a user