Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd: fix setting of timeouts for device units #288

Merged
merged 1 commit into from Oct 6, 2017

Conversation

msekletar
Copy link
Contributor

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.

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.
@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@kparal
Copy link

kparal commented Oct 5, 2017

This is needed for resolving a Fedora 27 blocker:
https://bugzilla.redhat.com/show_bug.cgi?id=1495635
Please review soon, thanks.

@lnykryn
Copy link
Member

lnykryn commented Oct 6, 2017

Looks good to me. Lennart suggested to use "infinity" here, but I would stick with 0 since it is bit more compatible with older versions of systemd.

@lnykryn lnykryn merged commit 2840177 into dracutdevs:master Oct 6, 2017
@jimklimov
Copy link

Hello, FYI : I've had an issue with my Debian based system (can't really tell the version, started as 8 but apt-updated a lot since then). I installed dracut packages, and lost my boot-ability, and followed the bread crumbs from the error message to this issue. And it was nail-on: whatever version of systemd I have, apparently takes the 0 timeout at face value and the sysroot.mount unit dies instantly, failing the boot (and curiously, mounting me the /sysroot into the recovery environment).

After a bit of digging in the miniroot's copy of dracut scripts (rootfs-generator specifically) I found it uses the rd.timeout value by default and falls back to 0 otherwise. So I edited grub.conf to set rd.timeout=infinity et voila, my system booted again.

So not sure if the dracut team would take this "feature" into account for future versions, but at least the data point may help future poor souls who get into same peril.

mwilck pushed a commit to mwilck/dracut that referenced this pull request Nov 22, 2023
…c1216059

fix(dracut.spec): do not require libgcrypt20-hmac for dracut-fips (bsc#1216059) (SLE15-SP6:GA)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants