Merge ~raharper/curtin:fix/initramfs-only-once-x86-only into curtin:master
Proposed by
Ryan Harper
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Chad Smith | ||||
Approved revision: | 9f069ce64a602c40c97b15639e780d0efdcfd1b3 | ||||
Merge reported by: | Server Team CI bot | ||||
Merged at revision: | not available | ||||
Proposed branch: | ~raharper/curtin:fix/initramfs-only-once-x86-only | ||||
Merge into: | curtin:master | ||||
Diff against target: |
189 lines (+85/-32) 2 files modified
curtin/commands/curthooks.py (+50/-32) tests/unittests/test_curthooks.py (+35/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Smith | Approve | ||
Michael Hudson-Doyle | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+376858@code.launchpad.net |
Commit message
curthooks: handle s390x/aarch64 kernel install hooks
On s390x, and aarch64, the kernel package directly calls
arch specific commands (zipl, flash-kernel) which fail to run
correctly if an initramfs isn't already created in the image. This
broke installation when we attempt to only create the initramfs
once. This branch adds arch support into the code path to divert
not only 'update-initramfs' but the arch specific tools as well and
restores them prior to running the real 'update-initramfs' command.
LP: #1856038
To post a comment you must log in.
PASSED: Continuous integration, rev:d76ddead9b3 0f394bdbdca5604 c616e841a55f88 /jenkins. ubuntu. com/server/ job/curtin- ci/3801/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-arm64/ 3801/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-ppc64el/ 3801/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-s390x/ 3801/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= torkoal/ 3801/
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/curtin- ci/3801/ /rebuild
https:/