mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
change menu size
This commit is contained in:
parent
7a543d5af7
commit
a77b345293
1 changed files with 3 additions and 4 deletions
|
@ -6,7 +6,7 @@ _bcfs_raid_options() {
|
||||||
# add durability
|
# add durability
|
||||||
_DURABILITY=""
|
_DURABILITY=""
|
||||||
_BCFS_DURABILITY="1 Normal_Device 0 Cache_Device Custom _"
|
_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}")
|
_BCFS_DURABILITY_SELECTED=$(cat "${_ANSWER}")
|
||||||
if [[ ${_BCFS_DURABILITY_SELECTED} == 1 ]]; then
|
if [[ ${_BCFS_DURABILITY_SELECTED} == 1 ]]; then
|
||||||
_DURABILITY=""
|
_DURABILITY=""
|
||||||
|
@ -15,7 +15,7 @@ _bcfs_raid_options() {
|
||||||
_DUR_COUNT=$((_DUR_COUNT - 1))
|
_DUR_COUNT=$((_DUR_COUNT - 1))
|
||||||
else
|
else
|
||||||
if [[ ${_BCFS_DURABILITY_SELECTED} == "Custom" ]]; then
|
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
|
"2" 2>"${_ANSWER}" || return 1
|
||||||
_BCFS_DURABILITY_SELECTED="$(cat "${_ANSWER}")"
|
_BCFS_DURABILITY_SELECTED="$(cat "${_ANSWER}")"
|
||||||
_DURABILITY="--durability=${_BCFS_DURABILITY_SELECTED}"
|
_DURABILITY="--durability=${_BCFS_DURABILITY_SELECTED}"
|
||||||
|
@ -38,7 +38,6 @@ _bcfs_raid_options() {
|
||||||
_bcfs_select_raid_devices () {
|
_bcfs_select_raid_devices () {
|
||||||
# select the second device to use, no missing option available!
|
# select the second device to use, no missing option available!
|
||||||
: >/tmp/.bcfs-devices
|
: >/tmp/.bcfs-devices
|
||||||
echo "${_BCFS_DEV}" >>/tmp/.bcfs-devices
|
|
||||||
_BCFS_DEVS=""
|
_BCFS_DEVS=""
|
||||||
#shellcheck disable=SC2001,SC2086
|
#shellcheck disable=SC2001,SC2086
|
||||||
for i in ${_DEVS}; do
|
for i in ${_DEVS}; do
|
||||||
|
@ -92,7 +91,7 @@ _bcfs_raid_level() {
|
||||||
else
|
else
|
||||||
# replicas
|
# replicas
|
||||||
_BCFS_REPLICATION="2 - 3 - Custom _"
|
_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})"
|
_BCFS_REP_COUNT="$(cat ${_ANSWER})"
|
||||||
if [[ ${_BCFS_REP_COUNT} == "Custom" ]]; then
|
if [[ ${_BCFS_REP_COUNT} == "Custom" ]]; then
|
||||||
_dialog --inputbox "Enter custom replication level (number):" 8 65 \
|
_dialog --inputbox "Enter custom replication level (number):" 8 65 \
|
||||||
|
|
Loading…
Reference in a new issue