diff --git a/scripts/system/etc/gdm3/PostSession/Default b/scripts/system/etc/gdm3/PostSession/Default index 9292367d7..bec2d4b1e 100755 --- a/scripts/system/etc/gdm3/PostSession/Default +++ b/scripts/system/etc/gdm3/PostSession/Default @@ -20,7 +20,7 @@ passwd -d $USER systemctl stop user@1000.service # Make sure the mountpoints are free -kill $(lsof -t "$HOME" /mnt) $(ps --no-headers -u student -o pid) +kill $(lsof -t "$HOME" /mnt) $(ps --no-headers -u "$USER" -o pid) umount "$HOME" /mnt umount /dev/disk/by-partlabel/01-home ||: wipefs -a /dev/disk/by-partlabel/01-tmp-home