Fix console login error message from pam mount.
This commit is contained in:
parent
aa8bc09ce6
commit
2a79f3c304
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue