remove double naming

This commit is contained in:
rootzoll
2025-01-04 22:56:59 +01:00
parent ce4f1312be
commit a6c3f61344

View File

@@ -96,12 +96,12 @@ if [ "$1" = "explore" ]; then
bootFromStorage=0 bootFromStorage=0
bootFromSD=0 bootFromSD=0
if [ ${#systemDevice} -eq 0 ]; then if [ ${#systemDevice} -eq 0 ]; then
# if its a RaspberryPi with a USB drive - keep system drive empty and keep booting from SD
if [ "${computerType}" = "raspberrypi" ] && [ ${gotNVMe} = "0" ]; then if [ "${computerType}" = "raspberrypi" ] && [ ${gotNVMe} = "0" ]; then
# if its a RaspberryPi with a USB drive - keep system drive empty and keep booting from SD
bootFromSD=1 bootFromSD=1
else else
systemDevice=${storageDevice} # all other like VM, RaspberryPi with a NVMe or a laptop - use the storage drive as system drive
bootFromStorage=1 bootFromStorage=1
fi fi
fi fi
@@ -112,7 +112,6 @@ if [ "$1" = "explore" ]; then
# if there is no spereated data drive - run combine data & storage partitin # if there is no spereated data drive - run combine data & storage partitin
combinedDataStorage=0 combinedDataStorage=0
if [ ${#dataDevice} -eq 0 ]; then if [ ${#dataDevice} -eq 0 ]; then
dataDevice=${storageDevice}
combinedDataStorage=1 combinedDataStorage=1
fi fi