migration keep HDD

This commit is contained in:
rootzoll
2020-07-26 13:16:06 +02:00
parent 75dbabd5a2
commit 0e96ea767e

View File

@@ -278,14 +278,13 @@ if [ "$1" = "import-gui" ]; then
# ask format for new HDD/SSD # ask format for new HDD/SSD
OPTIONS=(EXT4 "Ext4 & 1 Partition (default)" \ OPTIONS=()
BTRFS "BTRFS & 3 Partitions (experimental)"
)
# check if HDD/SSD contains Bitcoin Blockchain # check if HDD/SSD contains Bitcoin Blockchain
if [ "${hddBlocksBitcoin}" == "1" ]; then if [ "${hddBlocksBitcoin}" == "1" ]; then
OPTIONS+=(CLEAN "Just clean HDD & use Blockchain") OPTIONS+=(KEEP "Dont format & use Blockchain")
fi fi
OPTIONS+=(EXT4 "Ext4 & 1 Partition (default)")
OPTIONS+=(BTRFS "BTRFS & 3 Partitions (experimental)")
CHOICE=$(whiptail --clear --title "Formatting ${hddCandidate}" --menu "" 10 52 3 "${OPTIONS[@]}" 2>&1 >/dev/tty) CHOICE=$(whiptail --clear --title "Formatting ${hddCandidate}" --menu "" 10 52 3 "${OPTIONS[@]}" 2>&1 >/dev/tty)
clear clear
@@ -306,9 +305,8 @@ if [ "$1" = "import-gui" ]; then
exit 1 exit 1
fi fi
;; ;;
CLEAN) KEEP)
echo "CLEAN HDD & Keep Blockchain" echo "Keep HDD & Blockchain"
sudo /home/admin/XXcleanHDD.sh
;; ;;
*) *)
echo "CANCEL" echo "CANCEL"