dont remove system device for new layout

This commit is contained in:
rootzoll
2025-01-08 15:09:49 +01:00
parent bdc37c577f
commit 9a5f58a3ba

View File

@@ -30,7 +30,7 @@ fi
# This script should help to setup & manage those different configurations. # This script should help to setup & manage those different configurations.
# recommended mining minimal sizes # minimal storage sizes (recommended sizes can get checked by UI)
storagePrunedMinGB=128 storagePrunedMinGB=128
storageFullMinGB=890 storageFullMinGB=890
dataMinGB=32 dataMinGB=32
@@ -294,15 +294,10 @@ if [ "$1" = "status" ]; then
}' | sort -k2,2nr -k1,1 ) }' | sort -k2,2nr -k1,1 )
#echo "listOfDevices='${listOfDevices}'" #echo "listOfDevices='${listOfDevices}'"
# when a system drive is found before - remove it from the list
if [ ${#systemDevice} -gt 0 ]; then
listOfDevices=$(echo "${listOfDevices}" | grep -v "${systemDevice}")
fi
# on laptop ignore identified system drive which is the INSTALL thumb drive on setup # on laptop ignore identified system drive which is the INSTALL thumb drive on setup
# on RaspberryPi ignore all systems from thumb drives # on RaspberryPi ignore all systems from thumb drives
if [ "${computerType}" = "laptop" ] || [ "${computerType}" = "raspberrypi" ]; then if [ "${computerType}" = "laptop" ] || [ "${computerType}" = "raspberrypi" ]; then
echo "# on laptop or RaspberryPi ignore existing system ssd/nvme/ drives" echo "# on laptop or RaspberryPi ignore existing system drives for new setup"
systemDevice="" systemDevice=""
systemSizeGB="" systemSizeGB=""
systemPartition="" systemPartition=""