mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix box size
This commit is contained in:
parent
8be6bf99cb
commit
8feefff770
2 changed files with 4 additions and 4 deletions
|
@ -196,7 +196,7 @@ _check_btrfs_subvolume(){
|
||||||
_mount_btrfs
|
_mount_btrfs
|
||||||
for i in $(btrfs subvolume list "${_BTRFSMP}" | cut -d ' ' -f 9); do
|
for i in $(btrfs subvolume list "${_BTRFSMP}" | cut -d ' ' -f 9); do
|
||||||
if echo "${i}" | rg -q "${_BTRFS_SUBVOLUME}"; then
|
if echo "${i}" | rg -q "${_BTRFS_SUBVOLUME}"; then
|
||||||
_dialog --title " ERROR " --no-mouse --infobox "You have defined 2 identical SUBVOLUMES! Please enter another name." 3 75
|
_dialog --title " ERROR " --no-mouse --infobox "You have defined 2 identical SUBVOLUMES!\nPlease enter another name." 4 45
|
||||||
sleep 3
|
sleep 3
|
||||||
_BTRFS_SUBVOLUME=""
|
_BTRFS_SUBVOLUME=""
|
||||||
fi
|
fi
|
||||||
|
@ -206,7 +206,7 @@ _check_btrfs_subvolume(){
|
||||||
# existing subvolumes
|
# existing subvolumes
|
||||||
_subvolumes_in_use
|
_subvolumes_in_use
|
||||||
if echo "${_SUBVOLUME_IN_USE}" | rg -q "${_BTRFS_SUBVOLUME}"; then
|
if echo "${_SUBVOLUME_IN_USE}" | rg -q "${_BTRFS_SUBVOLUME}"; then
|
||||||
_dialog --title " ERROR " --no-mouse --infobox "You have defined 2 identical SUBVOLUMES! Please enter another name." 3 75
|
_dialog --title " ERROR " --no-mouse --infobox "You have defined 2 identical SUBVOLUMES!\nPlease enter another name." 4 45
|
||||||
sleep 3
|
sleep 3
|
||||||
_BTRFS_SUBVOLUME=""
|
_BTRFS_SUBVOLUME=""
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -111,7 +111,7 @@ _enter_mountpoint() {
|
||||||
_dialog --no-cancel --title " Mountpoint for ${_DEV} " --inputbox "" 7 65 "${_MP}" 2>"${_ANSWER}" || return 1
|
_dialog --no-cancel --title " Mountpoint for ${_DEV} " --inputbox "" 7 65 "${_MP}" 2>"${_ANSWER}" || return 1
|
||||||
_MP=$(cat "${_ANSWER}")
|
_MP=$(cat "${_ANSWER}")
|
||||||
if [[ "$(rg -F "|${_MP}|" /tmp/.parts | cut -d '|' -f 3)" == "${_MP}" ]]; then
|
if [[ "$(rg -F "|${_MP}|" /tmp/.parts | cut -d '|' -f 3)" == "${_MP}" ]]; then
|
||||||
_dialog --infobox "ERROR: You have defined 2 identical mountpoints!\nPlease select another mountpoint." 4 65
|
_dialog --infobox "ERROR: You have defined 2 identical mountpoints!\nPlease select another mountpoint." 4 45
|
||||||
_MP=""
|
_MP=""
|
||||||
sleep 3
|
sleep 3
|
||||||
fi
|
fi
|
||||||
|
@ -194,7 +194,7 @@ _create_filesystem() {
|
||||||
"$(${_LSBLK} LABEL "${_DEV}" 2>"${_NO_LOG}")" 2>"${_ANSWER}" || return 1
|
"$(${_LSBLK} LABEL "${_DEV}" 2>"${_NO_LOG}")" 2>"${_ANSWER}" || return 1
|
||||||
_LABEL_NAME=$(cat "${_ANSWER}")
|
_LABEL_NAME=$(cat "${_ANSWER}")
|
||||||
if [[ "$(rg -F "|${_LABEL_NAME}|" /tmp/.parts | cut -d '|' -f5)" == "${_LABEL_NAME}" ]]; then
|
if [[ "$(rg -F "|${_LABEL_NAME}|" /tmp/.parts | cut -d '|' -f5)" == "${_LABEL_NAME}" ]]; then
|
||||||
_dialog --title " ERROR " --no-mouse --infobox "You have defined 2 identical LABEL names!\nPlease enter another name." 4 65
|
_dialog --title " ERROR " --no-mouse --infobox "You have defined 2 identical LABEL names!\nPlease enter another name." 4 45
|
||||||
sleep 3
|
sleep 3
|
||||||
_LABEL_NAME=""
|
_LABEL_NAME=""
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue