Add cfdisk to the available partitioning tools

This commit is contained in:
natemaia
2018-07-29 12:53:14 -07:00
parent 61b1f949be
commit cb21cf9f2d
11 changed files with 15 additions and 15 deletions

View File

@ -830,19 +830,19 @@ create_partitions() {
tput civis
choice="$(dialog --cr-wrap --stdout --backtitle "$BT" --title " $_PartTitle " \
--menu "$_PartBody" 0 0 0 "$_PartAuto" "BIOS & UEFI" \
"gparted" "BIOS & UEFI" "parted" "BIOS & UEFI" "$_PartWipe" "BIOS & UEFI")"
"gparted" "BIOS & UEFI" "cfdisk" "BIOS & UEFI" "parted" "BIOS & UEFI" "$_PartWipe" "BIOS & UEFI")"
[[ $? != 0 || $choice == "" ]] && return 1 || clear
if [[ $choice != "$_PartWipe" && $choice != "$_PartAuto" ]]; then
if [[ $choice == "gparted" ]] && ! [[ $DISPLAY ]]; then
parted "$device"
cfdisk $device
else
$choice "$device"
$choice $device
fi
elif [[ $choice == "$_PartWipe" ]]; then
wipe_device "$device" && create_partitions "$device"
wipe_device $device && create_partitions $device
else
auto_partition "$device" || { ROOT_PART=""; BOOT_PART=""; BOOT_DEVICE=""; return 1; }
auto_partition $device || { initialize_variables; return 1; }
fi
}