You've already forked al-installer
Add cfdisk to the available partitioning tools
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user