Subject: bug#540: elogind unmounts /run/user/$UID tmpfs filesystem after logging in again

From: Frank <[email-masked]>
Date: Mon, 18 Jan 2021 21:12:24 +0100

Package: elogind
Version: 241.4-2

elogind unmounts /run/user/$UID tmpfs filesystem after logging in again. 
It should not do that.

Devuan was installed using the Refracta installer that is available on 
the iso-file devuan_beowulf_3.0.0_amd64_desktop-live.iso.
Unable to reproduce the issue in a VM booted of iso-file 
devuan_beowulf_3.0.0_i386_desktop-live.iso / 
devuan_beowulf_3.0.0_amd64_desktop-live.iso.

Steps to reproduce (new install, new user, default settings):
1) login to the XFCE desktop environment.
2) in a terminal window, exec df. This shows, amongst others, a tmpfs 
filesystem mounted at /run/user/$UID.
3) log out and log back in (rapidly).
4) in a terminal window, exec watch df. This shows, amongst others, the 
same tmpfs filesystem mounted at /run/user/$UID.
5) wait and watch closely.
6) df no longer shows the tmpfs filesystem mounted at /run/user/$UID, it 
was unmounted by elogind even though the user is still logged in.

Workaround: at "UserStopDelaySec=infinity" to section [Login] in config 
file /etc/elogind/logind.conf. The tmpfs mounted at /run/user/$UID will 
remain available until system reboot.
Workaround: after logout, wait for the tmpfs mounted at /run/user/$UID 
to be unmounted.