mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-26 17:51:48 +01:00
debug
This commit is contained in:
parent
0466dd1c9c
commit
a5f98a7570
@ -512,6 +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
|
||||
if findmnt -n -o TARGET "/dev/${partition}" | grep -q "^/$"; then
|
||||
installDeviceActive=1
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user