mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
don't ask for FS on swap
This commit is contained in:
parent
aa098c5eca
commit
2b076fb493
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ _create_filesystem() {
|
|||
_SKIP_FILESYSTEM=""
|
||||
_dialog --yesno "Would you like to create a filesystem on ${_DEVICE}?\n\n(This will overwrite existing data!)" 0 0 && _DOMKFS=1
|
||||
if [[ -n "${_DOMKFS}" ]]; then
|
||||
_select_filesystem || return 1
|
||||
[[ "${_FSTYPE}" =="swap" ]] || _select_filesystem || return 1
|
||||
while [[ -z "${_LABEL_NAME}" ]]; do
|
||||
_dialog --inputbox "Enter the LABEL name for the device, keep it short\n(not more than 12 characters) and use no spaces or special\ncharacters." 10 65 \
|
||||
"$(${_LSBLK} LABEL "${_DEVICE}")" 2>"${_ANSWER}" || return 1
|
||||
|
@ -294,7 +294,7 @@ _mkfs() {
|
|||
fi
|
||||
sleep 2
|
||||
fi
|
||||
if [[ "${2}" == "btrfs" && -n "${10}" && -n "${4}" ]]; then
|
||||
if [[ "${2}" == "btrfs" && -n "${10}" ]]; then
|
||||
_create_btrfs_subvolume
|
||||
fi
|
||||
_btrfs_scan
|
||||
|
|
Loading…
Reference in a new issue