mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-04 20:12:37 +02:00
migration keep HDD
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user