hibernate-resume-generator: wait "infinitely" for the resume device
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 3 Dec 2019 16:04:26 +0000 (17:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 19:33:24 +0000 (20:33 +0100)
commitbb598b56eb3cef6dc07b260dc205c67aa11b1196
treed6afdf5438aa50c9352ca32e9a707c5eebc796b5
parent77c04ce5c2709c1d51bf4c0e9d443c7d76546537
hibernate-resume-generator: wait "infinitely" for the resume device

This makes changes similar to the parent commit, but for hibernate-resume-generator.
If resume= is specified on the kernel command line, we'll set JobRunningTimeoutSec=0
for the device. This matches what we do for the root device.

In practice, other timeouts will take effect. For example dracut tries (and
fails :[ ) to start dracut-emergency.service after some time.

Fixes #7242, https://bugzilla.redhat.com/show_bug.cgi?id=1705522.

(cherry picked from commit ff757c9d294153a26a9dd2d9817d1985656f3002)
src/hibernate-resume/hibernate-resume-generator.c