With pam mount log in. Then log out. Verify mounts are still up. Bring down networking. Log in (using su is fine). The terminal hangs. You never log in.
- name: Configure SATA disk mount
template:
src: 99-sata-access.pkla.j2
dest: /etc/polkit-1/localauthority/20-org.d/99-sata-access.pkla
mode: 0640
owner: root
PolicyKit?
https://bugs.launchpad.net/ubuntu/+source/libpam-mount/+bug/117736
Does this apply here?
SATA solution:
/usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy
Actually it won't work if it's mounted under
$HOME
either.