[systemd-devel] How to write two .mount units for the same directory?

Matthias Urlichs matthias at urlichs.de
Wed Dec 24 00:29:22 PST 2014


Hi,

崔灏 (CUI Hao):
> I want to write 2 mount unit to mount the same directory. When the first
> failed to mount, then the second is called via OnFailure= setting.

I'd handle this by starting a shell script which simply tries the first
mount, and then does the backup mount if the first fails.

-- 
-- Matthias Urlichs


More information about the systemd-devel mailing list