Merge ~vorlon/cloud-init:master into cloud-init:master
Status: | Merged |
---|---|
Merged at revision: | 0e2030ca7fe783ead06100c748f4714895461799 |
Proposed branch: | ~vorlon/cloud-init:master |
Merge into: | cloud-init:master |
Diff against target: |
99 lines (+40/-21) 3 files modified
cloudinit/config/cc_growpart.py (+10/-1) cloudinit/config/cc_resizefs.py (+1/-20) cloudinit/util.py (+29/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+321245@code.launchpad.net |
Commit message
support resizing partition and rootfs on system booted without initramfs.
When booted without an initramfs, the root device will be /dev/root, not a
named device. There is partial support for this when resizing filesystems,
but not for growing partitions, without which it doesn't do much good. Move
the /dev/root resolution code to util.py and use it from cc_growpart.py.
Also, booting without an initramfs only works with a root= argument that's
either a kernel device name (which is unstable) or a partition UUID. Handle
the case of root=PARTUUID=
LP: #1677376
Description of the change
When booted without an initramfs, the root device will be /dev/root, not a named device. There is partial support for this when resizing filesystems, but not for growing partitions, without which it doesn't do much good. Move the /dev/root resolution code to util.py and use it from cc_growpart.py.
Also, booting without an initramfs only works with a root= argument that's either a kernel device name (which is unstable) or a partition UUID. Handle the case of root=PARTUUID=
PASSED: Continuous integration, rev:42d33bfda9c c83a6f2b18c51a5 43f4087c63471d /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 178/ /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- amd64/178 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- arm64/178 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- ppc64el/ 178 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- s390x/178 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=vm- i386/178
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 178/rebuild
https:/