It should suffice to add x-systemd.automount in fstab instead of noauto, then it will be mounted only the first time that something tries to access /mnt/data
]]>Systemd causes a few seconds delay on boot when it automounts all fstab entries and one of those entries is an encrypted volume. The problem is when I mount a data partition which is really not important, i.e. it can wait until the system is completely booted. I can fix this by using noauto in crypttab and fstab or I can use a rc.local script to mount the partition manually. But how can I tell systemd this partition is not important and mounting this partition should never delay booting? Is it even possible with systemd?
/etc/crypttab:
data /dev/... /root/data.key
/etc/fstab
/dev/mapper/data /mnt/data ext4 rw,relatime 0 0