Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160009305
D11721.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D11721.id.diff
View Options
Index: head/usr.sbin/bsdinstall/scripts/zfsboot
===================================================================
--- head/usr.sbin/bsdinstall/scripts/zfsboot
+++ head/usr.sbin/bsdinstall/scripts/zfsboot
@@ -1554,17 +1554,27 @@
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
#
-bootmethod=$( sysctl -n machdep.bootmethod )
-f_dprintf "machdep.bootmethod=[%s]" "$bootmethod"
-if [ "$bootmethod" = "UEFI" ]; then
- : ${ZFSBOOT_BOOT_TYPE:=BIOS+UEFI}
+case $(uname -m) in
+arm64)
+ # We support only UEFI boot for arm64
+ : ${ZFSBOOT_BOOT_TYPE:=UEFI}
: ${ZFSBOOT_PARTITION_SCHEME:=GPT}
-else
- : ${ZFSBOOT_BOOT_TYPE:=BIOS}
- : ${ZFSBOOT_PARTITION_SCHEME:=GPT}
-fi
+ ;;
+*)
+ # 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
+ : ${ZFSBOOT_BOOT_TYPE:=BIOS+UEFI}
+ : ${ZFSBOOT_PARTITION_SCHEME:=GPT}
+ 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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 21, 12:40 PM (5 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34149347
Default Alt Text
D11721.id.diff (1 KB)
Attached To
Mode
D11721: bsdinstall: default to UEFI-only boot on arm64
Attached
Detach File
Event Timeline
Log In to Comment