mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 03:56:21 +02:00
fix the cleanup
This commit is contained in:
@@ -155,15 +155,21 @@ if [ "${setupPhase}" == "setup" ]; then
|
|||||||
|
|
||||||
# delete everything but blockchain
|
# delete everything but blockchain
|
||||||
echo "Deleting everything on HDD/SSD while keeping blockchain ..."
|
echo "Deleting everything on HDD/SSD while keeping blockchain ..."
|
||||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
|
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount)
|
||||||
if [ "${hddFormat}" != "btrfs" ]; then
|
if [ "${error}" != "" ]; then
|
||||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddPartitionCandidate})
|
echo "TEMPMOUNT FAILED:"
|
||||||
else
|
echo "${error}"
|
||||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddCandidate})
|
echo "Please report as issue on the raspiblitz github."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
sudo ./config.scripts/blitz.datadrive.sh tempmount sda1
|
sudo ./config.scripts/blitz.datadrive.sh clean all -keepblockchain
|
||||||
sudo ./config.scripts/blitz.datadrive.sh clean -keepblockchain
|
if [ "${error}" != "" ]; then
|
||||||
sudo umount /mnt/hdd
|
echo "CLEANING HDD FAILED:"
|
||||||
|
echo "${error}"
|
||||||
|
echo "Please report as issue on the raspiblitz github."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sudo /home/admin/config.scripts/blitz.datadrive.sh umount
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
# by keeping that blockchain - user choosed already the blockchain type
|
# by keeping that blockchain - user choosed already the blockchain type
|
||||||
|
Reference in New Issue
Block a user