[systemd-devel] help: unmounting iscsi xfs filesystem without using netdev in /etc/fstab

Lennart Poettering lennart at poettering.net
Tue Aug 27 16:36:20 UTC 2019


On Di, 27.08.19 09:32, Tony Rodriguez (unixpro1970 at gmail.com) wrote:

> My team mentioned adding _netdev is now acceptable (thank goodness) but
> wondering if there is a way to limit the timeout when using _netdev?

You can set the job timeout for any target via
JobTimeoutSec=/JobRunningTimeoutSec= in the unit file (or via a
drop-in), see docs for details. With that you can make
network.target/network-online.target jobs timeout eventually allowing
the boot to progress at any time you desire.

Note though that it is usually better to put a timeout on the
individual unit that delays these targets to be reached, rather than
on the targets or the jobs for them themselves.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list