From 5ab1eab7a0228b265873e3e5caf010cdf66c22e6 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Mon, 9 Sep 2019 12:07:49 +0100 Subject: [PATCH] Use username environment variable instead of hard-coded value --- scripts/system/etc/gdm3/PostSession/Default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/etc/gdm3/PostSession/Default b/scripts/system/etc/gdm3/PostSession/Default index 9292367d..bec2d4b1 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