This commit is contained in:
Tobias Powalowski 2023-01-24 11:11:37 +01:00
parent 9c1a475ec8
commit 0546cf11ed

View file

@ -61,9 +61,9 @@ _select_filesystem() {
} }
_enter_mountpoint() { _enter_mountpoint() {
if [[ -n "${_DO_ROOT}" ]]; then if [[ -n "${_ROOT_DEV}" ]]; then
_MP="/" _MP="/"
elif [[ -n "${_DO_UEFISYSPART}" ]]; then elif [[ -n "${_UEFISYSDEV}" ]]; then
_dialog --menu "Select the mountpoint of your Efi System Partition (ESP) on ${_DEV}:" 15 50 12 /boot _ /efi _ 2>"${_ANSWER}" || return 1 _dialog --menu "Select the mountpoint of your Efi System Partition (ESP) on ${_DEV}:" 15 50 12 /boot _ /efi _ 2>"${_ANSWER}" || return 1
_MP=$(cat "${_ANSWER}") _MP=$(cat "${_ANSWER}")
else else
@ -174,14 +174,14 @@ _mountpoints() {
#shellcheck disable=SC2086 #shellcheck disable=SC2086
if [[ -n ${_DO_ROOT} ]]; then if [[ -n ${_DO_ROOT} ]]; then
_dialog --menu "Select the device to mount as /:" 15 50 12 ${_DEVS} 2>"${_ANSWER}" || return 1 _dialog --menu "Select the device to mount as /:" 15 50 12 ${_DEVS} 2>"${_ANSWER}" || return 1
_DEV_ROOT=$(cat "${_ANSWER}")
elif [[ -n ${_DO_UEFISYSDEV} ]]; then elif [[ -n ${_DO_UEFISYSDEV} ]]; then
_dialog --menu "Select the device to mount as Efi System Partition (ESP):" 15 50 12 ${_DEVS} 2>"${_ANSWER}" || return 1 _dialog --menu "Select the device to mount as Efi System Partition (ESP):" 15 50 12 ${_DEVS} 2>"${_ANSWER}" || return 1
_UEFISYSDEV=$(cat "${_ANSWER}")
else else
_dialog --menu "Select any additional devices to mount under your new root:" 15 52 12 ${_DEVS} DONE _ 2>"${_ANSWER}" || return 1 _dialog --menu "Select any additional devices to mount under your new root:" 15 52 12 ${_DEVS} DONE _ 2>"${_ANSWER}" || return 1
fi
_DEV=$(cat "${_ANSWER}") _DEV=$(cat "${_ANSWER}")
[[ -n ${_DO_ROOT} ]] && _DEV_ROOT=${_DEV} fi
[[ -n ${_DO_UEFISYSDEV} ]] && _UEFISYSDEV=${_DEV}
if [[ "${_DEV}" != "DONE" ]]; then if [[ "${_DEV}" != "DONE" ]]; then
_FSTYPE="$(${_LSBLK} FSTYPE "${_DEV}")" _FSTYPE="$(${_LSBLK} FSTYPE "${_DEV}")"
# clear values first! # clear values first!