]> git.ipfire.org Git - thirdparty/systemd.git/commit
gpt-auto-generator: don't wait for udev
authorLennart Poettering <lennart@poettering.net>
Wed, 19 Dec 2018 16:17:35 +0000 (17:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Dec 2018 22:27:47 +0000 (23:27 +0100)
commit052eaf5c9302ac64f1de965babfaf9c120740f73
tree98134869033fb615b95d8e74265d5410d40b9b19
parent2141bedb39a5abe4564ba8df44a78f4b3668b830
gpt-auto-generator: don't wait for udev

Generators run in a context where waiting for udev is not an option,
simply because it's not running there yet. Hence, let's not wait for it
in this case.

This is generally OK to do as we are operating on the root disk only
here, which should have been probed already by the time we come this
far.

An alternative fix might be to remove the udev dependency from image
dissection again in the long run (and thus replace reliance on
/dev/block/x:y somehow with something else).

Fixes: #11205
src/gpt-auto-generator/gpt-auto-generator.c
src/shared/dissect-image.c
src/shared/dissect-image.h