Merge lp:~smoser/curtin/trunk.lp1604962 into lp:~curtin-dev/curtin/trunk
Proposed by
Scott Moser
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Scott Moser | ||||
Proposed branch: | lp:~smoser/curtin/trunk.lp1604962 | ||||
Merge into: | lp:~curtin-dev/curtin/trunk | ||||
Diff against target: |
183 lines (+179/-0) 1 file modified
curtin/power_state.py (+179/-0) |
||||
To merge this branch: | bzr merge lp:~smoser/curtin/trunk.lp1604962 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
curtin developers | Pending | ||
Review via email: mp+306544@code.launchpad.net |
To post a comment you must log in.
Unmerged revisions
- 427. By Scott Moser
-
adding code i was playing with.
The intent of this would be for curtin to do something like the main
here. Instead of invoking the shell reboot function, it would
search for a parent that it liked (such as one named cloud-init).
If there was no good looking parent, then it would use itself.So basically:
- select a process P to wait until it is gone.
- fork
- exit from main process
- second process polls for process P to have left the building
- second process (conditionally) invokes the reboot.
marked as a work in progress, but this is to fix bug 1604962.