Merge lp:~smoser/cloud-init/trunk.improve-wait into lp:~cloud-init-dev/cloud-init/trunk
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | 1190 |
Proposed branch: | lp:~smoser/cloud-init/trunk.improve-wait |
Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
Diff against target: |
33 lines (+5/-8) 1 file modified
udev/cloud-init-wait (+5/-8) |
To merge this branch: | bzr merge lp:~smoser/cloud-init/trunk.improve-wait |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dimitri John Ledkov (community) | Approve | ||
Martin Pitt (community) | Approve | ||
cloud-init Commiters | Pending | ||
Review via email: mp+290243@code.launchpad.net |
Commit message
improve how cloud-init-wait waits
since we run from a udev event, this is sufficient.
udev settle will exit when either of
a.) the file exists
b.) the udev event queue has all been processed.
Since cloud-init-wait is being run as a udev event, 'b' cannot
be satisfied until it finishes. Thus, this essentially becomes a
inotify based wait for the file /run/cloud-
and no loops are needed.
To post a comment you must log in.
This looks nice indeed, thanks!