modules/external-storage: wait for MainPID to exit

This commit is contained in:
Max Headroom 2024-06-06 02:18:52 +02:00
parent 3cda1e1488
commit 637f048ee3

View file

@ -167,6 +167,8 @@ in
else
echo Filesystem already unmounted.
fi
echo "Waiting for MainPID ($MAINPID) to die..."
tail --pid=$MAINPID -f /dev/null
'';
# fsck and unmounting might take a while