]> git.ipfire.org Git - thirdparty/dracut.git/commit
systemd: fix setting of timeouts for device units
authorMichal Sekletar <msekleta@redhat.com>
Wed, 27 Sep 2017 11:27:42 +0000 (13:27 +0200)
committerLukáš Nykrýn <lnykryn@redhat.com>
Fri, 6 Oct 2017 08:05:25 +0000 (10:05 +0200)
commit28401778c4c95b3750e73675dd4a4867303402d5
tree7e0887d31cab7ecdf90f674181e05742341d34d4
parent424c065cd99cc9c35a92a68d34c161beff5f5497
systemd: fix setting of timeouts for device units

JobRunningTimeoutSec now affects how long can start jobs for device
units stay in the "running" state. Disabling default job timeout via
JobTimeoutSec=0 doesn't disable running state timeout. We need to set
running state timeout as well.

Note that doing this the other way around has effect on generic timeout,
i.e. disabling running state timeout disables generic timeout. But doing
it this way we would create implicit dependency on fairly new
systemd-234. However, by setting both options we don't create dependency
on specific systemd version.
modules.d/90dmsquash-live/dmsquash-generator.sh
modules.d/90livenet/livenet-generator.sh
modules.d/98dracut-systemd/rootfs-generator.sh
modules.d/99base/dracut-lib.sh