no system as data device

This commit is contained in:
rootzoll
2025-01-08 16:04:26 +01:00
parent a8225620d5
commit 4207ec6313

View File

@@ -370,6 +370,12 @@ if [ "$1" = "status" ]; then
dataDevice=$(echo "${listOfDevices}" | head -n1 | awk '{print $1}') dataDevice=$(echo "${listOfDevices}" | head -n1 | awk '{print $1}')
dataSizeGB=$(echo "${listOfDevices}" | head -n1 | awk '{print $2}') dataSizeGB=$(echo "${listOfDevices}" | head -n1 | awk '{print $2}')
# ignore system device if choosen as data device
if [ "${systemDevice}" = "${dataDevice}" ]; then
dataDevice=""
dataSizeGB=""
fi
# if there is was no spereated data drive - run combine data & storage partiton # if there is was no spereated data drive - run combine data & storage partiton
if [ ${#dataDevice} -eq 0 ]; then if [ ${#dataDevice} -eq 0 ]; then
combinedDataStorage=1 combinedDataStorage=1