This commit is contained in:
rootzoll
2025-01-19 10:40:21 +01:00
parent a5f98a7570
commit be8d389a09

View File

@@ -512,7 +512,7 @@ if [ "$action" = "status" ] || [ "$action" = "mount" ] || [ "$action" = "unmount
if [ ${#installDevice} -gt 0 ]; then
# get all partitions and check if mounted as root
for partition in $(lsblk -no NAME "/dev/${installDevice}" | grep "^${installDevice}"); do
echo
echo "# check partition ${partition}"
if findmnt -n -o TARGET "/dev/${partition}" | grep -q "^/$"; then
installDeviceActive=1
break