|
|
|
@ -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 |
|
|
|
|