Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/zfsboot
Show First 20 Lines • Show All 1,548 Lines • ▼ Show 20 Lines | |||||
f_dprintf "BSDINSTALL_CHROOT=[%s]" "$BSDINSTALL_CHROOT" | f_dprintf "BSDINSTALL_CHROOT=[%s]" "$BSDINSTALL_CHROOT" | ||||
f_dprintf "BSDINSTALL_TMPETC=[%s]" "$BSDINSTALL_TMPETC" | f_dprintf "BSDINSTALL_TMPETC=[%s]" "$BSDINSTALL_TMPETC" | ||||
f_dprintf "FSTAB_FMT=[%s]" "$FSTAB_FMT" | f_dprintf "FSTAB_FMT=[%s]" "$FSTAB_FMT" | ||||
# | # | ||||
# Determine default boot type | # Determine default boot type | ||||
# | # | ||||
case $(uname -m) in | case $(uname -m) in | ||||
arm64) | arm64|riscv) | ||||
# We support only UEFI boot for arm64 | # We support only UEFI boot for arm64 and riscv. | ||||
: ${ZFSBOOT_BOOT_TYPE:=UEFI} | : ${ZFSBOOT_BOOT_TYPE:=UEFI} | ||||
: ${ZFSBOOT_PARTITION_SCHEME:=GPT} | : ${ZFSBOOT_PARTITION_SCHEME:=GPT} | ||||
;; | ;; | ||||
*) | *) | ||||
# If the system was booted with UEFI, set the default boot type to UEFI | # If the system was booted with UEFI, set the default boot type to UEFI | ||||
bootmethod=$( sysctl -n machdep.bootmethod ) | bootmethod=$( sysctl -n machdep.bootmethod ) | ||||
f_dprintf "machdep.bootmethod=[%s]" "$bootmethod" | f_dprintf "machdep.bootmethod=[%s]" "$bootmethod" | ||||
if [ "$bootmethod" = "UEFI" ]; then | if [ "$bootmethod" = "UEFI" ]; then | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |