You are not logged in.
I am mounting an encrypted drive at login as explained in the guide:
https://wiki.archlinux.org/title/Dm-cry … g_at_login
It works well, the only annoyance comes at login when the drive is not present, in which case I get a 90s timeout wait.
The mount unit I have is:
# /etc/systemd/system/home-username.mount
[Unit]
Requires=user@1000.service
Before=user@1000.service
[Mount]
Where=/mnt/sdcard
What=/dev/mapper/sdcard
Type=ext4
Options=defaults
[Install]
RequiredBy=user@1000.service
The error I get is:
systemd[1]: dev-mapper-sdcard.device: Job dev-mapper-sdcard.device/start timed out.
systemd[1]: Timed out waiting for device /dev/mapper/sdcard.
systemd[1]: Dependency failed for /mnt/sdcard.
systemd[1]: Dependency failed for User Manager for UID 1000.
systemd[1]: user@1000.service: Job user@1000.service/start failed with result 'dependency'.
systemd[1]: mnt-sdcard.mount: Job mnt-sdcard.mount/start failed with result 'dependency'.
systemd[1]: dev-mapper-sdcard.device: Job dev-mapper-sdcard.device/start failed with result 'timeout'.
I have already tried
TimeoutSec=1
in the Mount section, however it has no effect.
Last edited by rsaavedra (2023-04-05 17:55:59)
Offline