Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/zfsboot
Show First 20 Lines • Show All 1,441 Lines • ▼ Show 20 Lines | |||||
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 | ||||
: ${ZFSBOOT_BOOT_TYPE:=UEFI} | : ${ZFSBOOT_BOOT_TYPE:=UEFI} | ||||
: ${ZFSBOOT_PARTITION_SCHEME:=GPT} | : ${ZFSBOOT_PARTITION_SCHEME:=GPT} | ||||
else | else | ||||
: ${ZFSBOOT_BOOT_TYPE:=BIOS} | : ${ZFSBOOT_BOOT_TYPE:=BIOS} | ||||
: ${ZFSBOOT_PARTITION_SCHEME:=GPT} | : ${ZFSBOOT_PARTITION_SCHEME:=GPT} | ||||
bsdinstall workaround_lenovo || | |||||
export WORKAROUND_LENOVO=1 ZFSBOOT_PARTITION_SCHEME="GPT + Lenovo Fix" | |||||
bsdinstall workaround_gptactive || | |||||
export WORKAROUND_GPTACTIVE=1 ZFSBOOT_PARTITION_SCHEME="GPT + Active" | |||||
fi | fi | ||||
# | # | ||||
# Loop over the main menu until we've accomplished what we came here to do | # Loop over the main menu until we've accomplished what we came here to do | ||||
# | # | ||||
while :; do | while :; do | ||||
if ! f_interactive; then | if ! f_interactive; then | ||||
retval=$DIALOG_OK | retval=$DIALOG_OK | ||||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |