dont install drive in proposed layout

This commit is contained in:
rootzoll 2025-02-05 11:46:50 +01:00
parent fb2aa6d26a
commit 10f1a5d562

View File

@ -410,6 +410,11 @@ if [ "$action" = "status" ] || [ "$action" = "mount" ] || [ "$action" = "unmount
systemDevice=""
systemSizeGB=""
# dont use install device in proposed layout
elif [ "${systemDevice}" = "${installDevice}" ]; then
systemDevice=""
systemSizeGB=""
# otherwise remove the system device from the list
else
listOfDevices=$(echo "${listOfDevices}" | grep -v "${systemDevice}")
@ -431,6 +436,12 @@ if [ "$action" = "status" ] || [ "$action" = "mount" ] || [ "$action" = "unmount
dataSizeGB=""
fi
# dont use install device in proposed layout
if [ "${systemDevice}" = "${installDevice}" ]; then
systemDevice=""
systemSizeGB=""
fi
# if there is was no spereated data drive - run combine data & storage partiton
if [ ${#dataDevice} -eq 0 ]; then
combinedDataStorage=1