Browse Source

Use username environment variable instead of hard-coded value

pull/264/head
Xavier Petit 5 years ago
parent
commit
5ab1eab7a0
No known key found for this signature in database
GPG Key ID: CA3F2B17E25ABD26
  1. 2
      scripts/system/etc/gdm3/PostSession/Default

2
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

Loading…
Cancel
Save