Comment on What is easiest solution to automatically resolve missing mounts due to e.g. a power outage?

<- View Parent
samwwwblack@lemm.ee ⁨4⁩ ⁨months⁩ ago

You 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.

source
Sort:hotnewtop