Comment on What is easiest solution to automatically resolve missing mounts due to e.g. a power outage?
samwwwblack@lemm.ee 9 months agoYou can use RequiresMountsFor=
(eg RequiresMountsFor=/media/storage-volume1
) instead of manually adding .mount
to After
/Requires
- you can then use .mount
files or fstab as you’re stipulating the path rather than a potentially changeable systemd unit name.
The systemd.mount manpage also strongly recommends using fstab for human added mount points over .mount
files.
avidamoeba@lemmy.ca 9 months ago
Oh this is nice. I’ll probably start using it.