Fix console login error message from pam mount.

This commit is contained in:
Andreas B. Mundt 2024-01-16 12:01:30 +01:00
parent aa8bc09ce6
commit 2a79f3c304

View file

@ -28,7 +28,7 @@ shutdownVMs(){
######################
## This is the first mount we need to get rid of:
if [[ "$mtp" =~ "/lmn/media/$usr/share" ]] ; then
if [[ "$mtp" =~ "/lmn/media/$usr/share" ]] && [[ -d "/run/user/$uid" ]] ; then
shutdownVMs
[[ "$slp" = true ]] && sleep 5 # leave some time to write caches …
sudo -u ${usr} killall gvfsd | systemd-cat