mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix autoprepare
This commit is contained in:
parent
2d7809ee49
commit
5cca8045a1
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ _autoprepare() {
|
||||||
# switch for mbr usage
|
# switch for mbr usage
|
||||||
_set_guid
|
_set_guid
|
||||||
: >/tmp/.device-names
|
: >/tmp/.device-names
|
||||||
_DISKS=$(blockdevices)
|
_DISKS=$(_blockdevices)
|
||||||
if [[ "$(echo "${_DISKS}" | wc -w)" -gt 1 ]]; then
|
if [[ "$(echo "${_DISKS}" | wc -w)" -gt 1 ]]; then
|
||||||
_dialog --cr-wrap --msgbox "Available Disks:\n\n$(_getavaildisks)\n" 0 0
|
_dialog --cr-wrap --msgbox "Available Disks:\n\n$(_getavaildisks)\n" 0 0
|
||||||
#shellcheck disable=SC2046
|
#shellcheck disable=SC2046
|
||||||
_dialog --menu "Select the storage drive to use:" 14 55 7 $(blockdevices _) 2>"${_ANSWER}" || return 1
|
_dialog --menu "Select the storage drive to use:" 14 55 7 $(_blockdevices _) 2>"${_ANSWER}" || return 1
|
||||||
_DISK=$(cat "${_ANSWER}")
|
_DISK=$(cat "${_ANSWER}")
|
||||||
else
|
else
|
||||||
_DISK="${_DISKS}"
|
_DISK="${_DISKS}"
|
||||||
|
|
Loading…
Reference in a new issue