I don't use mount units either, although I did look at them at some point. There's a lot more richness and flexibility in the mount unit approach, but it does leave you with a group of separate files to manage/worry about. OTOH fstab has everything all in one place but lacking the feature richness of mount units.
I suspect a lot of those feature can be included via fstab by using the x-systemd. prefix and putting it into the mount options filed e.g. x-systemd.automount. Admittedly I've only tested with x-systemd.automount, x-systemd.idle-timeout, x-systemd.device-timeout, and x-systemd.mount-timeout.
Amusingly, the systemd.mount man page says "In general, configuring mount points through /etc/fstab is the preferred approach to manage mounts for humans."
Wondering what other kind of beings use this stuff? Image may be NSFW.
Clik here to view.
Aliens? Image may be NSFW.
Clik here to view.

Statistics: Posted by thagrol — Wed Dec 18, 2024 4:18 pm