Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/zfsboot
Show First 20 Lines • Show All 318 Lines • ▼ Show 20 Lines | |||||
msg_swap_size_help="Customize how much swap space is allocated to each selected disk" | msg_swap_size_help="Customize how much swap space is allocated to each selected disk" | ||||
msg_swap_toosmall="The selected swap size (%s) is too small. Please enter a value greater than 100MB or enter 0 for no swap" | msg_swap_toosmall="The selected swap size (%s) is too small. Please enter a value greater than 100MB or enter 0 for no swap" | ||||
msg_these_disks_are_too_small="These disks are smaller than the amount of requested\nswap (%s) and/or geli(8) (%s) partitions, which would\ntake 100%% or more of each of the following selected disks:\n\n %s\n\nRecommend changing partition size(s) and/or selecting a\ndifferent set of disks." | msg_these_disks_are_too_small="These disks are smaller than the amount of requested\nswap (%s) and/or geli(8) (%s) partitions, which would\ntake 100%% or more of each of the following selected disks:\n\n %s\n\nRecommend changing partition size(s) and/or selecting a\ndifferent set of disks." | ||||
msg_unable_to_get_disk_capacity="Unable to get disk capacity of \`%s'" | msg_unable_to_get_disk_capacity="Unable to get disk capacity of \`%s'" | ||||
msg_unsupported_partition_scheme="%s is an unsupported partition scheme" | msg_unsupported_partition_scheme="%s is an unsupported partition scheme" | ||||
msg_user_cancelled="User Cancelled." | msg_user_cancelled="User Cancelled." | ||||
msg_yes="YES" | msg_yes="YES" | ||||
msg_zfs_configuration="ZFS Configuration" | msg_zfs_configuration="ZFS Configuration" | ||||
msg_please_enter_options_for_your_zpool="Please enter options for your zpool" | |||||
msg_zfs_options_name="ZFS Pool Options" | |||||
msg_zfs_options_name_help="Customize ZFS options for the zpool to be created " | |||||
dim: Is there supposed to be a space at the end of the message here? I don't see it in the other… | |||||
############################################################ FUNCTIONS | ############################################################ FUNCTIONS | ||||
# dialog_menu_main | # dialog_menu_main | ||||
# | # | ||||
# Display the dialog(1)-based application main menu. | # Display the dialog(1)-based application main menu. | ||||
# | # | ||||
dialog_menu_main() | dialog_menu_main() | ||||
Show All 34 Lines | 'P $msg_partition_scheme' | ||||
'$ZFSBOOT_PARTITION_SCHEME ($ZFSBOOT_BOOT_TYPE)' | '$ZFSBOOT_PARTITION_SCHEME ($ZFSBOOT_BOOT_TYPE)' | ||||
'$msg_partition_scheme_help' | '$msg_partition_scheme_help' | ||||
'S $msg_swap_size' '$ZFSBOOT_SWAP_SIZE' | 'S $msg_swap_size' '$ZFSBOOT_SWAP_SIZE' | ||||
'$msg_swap_size_help' | '$msg_swap_size_help' | ||||
'M $msg_swap_mirror' '$swapmirror' | 'M $msg_swap_mirror' '$swapmirror' | ||||
'$msg_swap_mirror_help' | '$msg_swap_mirror_help' | ||||
'W $msg_swap_encrypt' '$swapgeli' | 'W $msg_swap_encrypt' '$swapgeli' | ||||
'$msg_swap_encrypt_help' | '$msg_swap_encrypt_help' | ||||
'O $msg_zfs_options_name' '*' | |||||
jhbUnsubmitted Not Done Inline ActionsIt might nice if this showed the current options or is that potentially too large? jhb: It might nice if this showed the current options or is that potentially too large? | |||||
dimUnsubmitted Not Done Inline ActionsI think what jhb means here is that instead of '*' you might want to use $ZFSBOOT_POOL_CREATE_OPTIONS ? dim: I think what jhb means here is that instead of `'*'` you might want to use… | |||||
'$msg_zfs_options_name_help' | |||||
" # END-QUOTE | " # END-QUOTE | ||||
local defaultitem= # Calculated below | local defaultitem= # Calculated below | ||||
local hline="$hline_alnum_arrows_punc_tab_enter" | local hline="$hline_alnum_arrows_punc_tab_enter" | ||||
local height width rows | local height width rows | ||||
eval f_dialog_menu_with_help_size height width rows \ | eval f_dialog_menu_with_help_size height width rows \ | ||||
\"\$title\" \"\$btitle\" \"\$prompt\" \"\$hline\" $menu_list | \"\$title\" \"\$btitle\" \"\$prompt\" \"\$hline\" $menu_list | ||||
▲ Show 20 Lines • Show All 1,462 Lines • ▼ Show 20 Lines | ?" $msg_swap_mirror") | ||||
;; | ;; | ||||
?" $msg_swap_encrypt") | ?" $msg_swap_encrypt") | ||||
# Toggle the variable referenced both by the menu and later | # Toggle the variable referenced both by the menu and later | ||||
if [ "$ZFSBOOT_SWAP_ENCRYPTION" ]; then | if [ "$ZFSBOOT_SWAP_ENCRYPTION" ]; then | ||||
ZFSBOOT_SWAP_ENCRYPTION= | ZFSBOOT_SWAP_ENCRYPTION= | ||||
else | else | ||||
ZFSBOOT_SWAP_ENCRYPTION=1 | ZFSBOOT_SWAP_ENCRYPTION=1 | ||||
fi | fi | ||||
;; | |||||
?" $msg_zfs_options_name") | |||||
# Prompt the user to input/change the pool options | |||||
f_dialog_input input \ | |||||
"$msg_please_enter_options_for_your_zpool" \ | |||||
"$ZFSBOOT_POOL_CREATE_OPTIONS" && | |||||
ZFSBOOT_POOL_CREATE_OPTIONS="$input" | |||||
;; | ;; | ||||
esac | esac | ||||
done | done | ||||
exit $SUCCESS | exit $SUCCESS | ||||
################################################################################ | ################################################################################ | ||||
# END | # END | ||||
################################################################################ | ################################################################################ |
Is there supposed to be a space at the end of the message here? I don't see it in the other prompts.