From a77b345293f433b0ada041b781601d3e8c7b5d98 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 19 Apr 2024 21:33:48 +0200 Subject: [PATCH] change menu size --- usr/lib/archboot/installer/bcachefs.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/usr/lib/archboot/installer/bcachefs.sh b/usr/lib/archboot/installer/bcachefs.sh index 9b3a80446..1fbe43e6d 100644 --- a/usr/lib/archboot/installer/bcachefs.sh +++ b/usr/lib/archboot/installer/bcachefs.sh @@ -6,7 +6,7 @@ _bcfs_raid_options() { # add durability _DURABILITY="" _BCFS_DURABILITY="1 Normal_Device 0 Cache_Device Custom _" - _dialog --no-cancel --title " Durability " --menu "" 13 50 7 ${_BCFS_DURABILITY} 2>"${_ANSWER}" || return 1 + _dialog --no-cancel --title " Durability " --menu "" 11 50 5 ${_BCFS_DURABILITY} 2>"${_ANSWER}" || return 1 _BCFS_DURABILITY_SELECTED=$(cat "${_ANSWER}") if [[ ${_BCFS_DURABILITY_SELECTED} == 1 ]]; then _DURABILITY="" @@ -15,7 +15,7 @@ _bcfs_raid_options() { _DUR_COUNT=$((_DUR_COUNT - 1)) else if [[ ${_BCFS_DURABILITY_SELECTED} == "Custom" ]]; then - _dialog --inputbox "Enter custom durability level (number):" 8 65 \ + _dialog --inputbox "Enter custom durability level (number):" 5 65 \ "2" 2>"${_ANSWER}" || return 1 _BCFS_DURABILITY_SELECTED="$(cat "${_ANSWER}")" _DURABILITY="--durability=${_BCFS_DURABILITY_SELECTED}" @@ -38,7 +38,6 @@ _bcfs_raid_options() { _bcfs_select_raid_devices () { # select the second device to use, no missing option available! : >/tmp/.bcfs-devices - echo "${_BCFS_DEV}" >>/tmp/.bcfs-devices _BCFS_DEVS="" #shellcheck disable=SC2001,SC2086 for i in ${_DEVS}; do @@ -92,7 +91,7 @@ _bcfs_raid_level() { else # replicas _BCFS_REPLICATION="2 - 3 - Custom _" - _dialog --no-cancel --title " Replication Level " --menu "" 13 50 7 ${_BCFS_REPLICATION} 2>"${_ANSWER}" || return 1 + _dialog --no-cancel --title " Replication Level " --menu "" 11 50 5 ${_BCFS_REPLICATION} 2>"${_ANSWER}" || return 1 _BCFS_REP_COUNT="$(cat ${_ANSWER})" if [[ ${_BCFS_REP_COUNT} == "Custom" ]]; then _dialog --inputbox "Enter custom replication level (number):" 8 65 \