Merge ~rjschwei/cloud-init:btrfsResize into cloud-init:master
Proposed by
Robert Schweikert
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Scott Moser | ||||
Approved revision: | cd9dab43dad8121d3526ee84ac64665fddbfccf3 | ||||
Merged at revision: | b28ab78089d362c5c6cab985feee0f5f84c9db44 | ||||
Proposed branch: | ~rjschwei/cloud-init:btrfsResize | ||||
Merge into: | cloud-init:master | ||||
Diff against target: |
176 lines (+95/-8) 4 files modified
cloudinit/config/cc_resizefs.py (+11/-1) cloudinit/tests/test_util.py (+46/-0) cloudinit/util.py (+17/-6) tests/unittests/test_handler/test_handler_resizefs.py (+21/-1) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+334338@code.launchpad.net |
Commit message
btrfs: support resizing if root is mounted ro.
Resize of btrfs fails if the mount point for the file system we are trying
to resize, i.e. the root of the filesystem is read only. With this change
we use a known (currently snapper specific) rw location to work around a
flaw that blocks resizing of the ro filesystem.
LP: #1734787
Description of the change
Resize of btrfs fails if "/" is mounted ro. However, it should be allowed to resize the file system. Use a subvolume that is rw as the mountpoint to trick the tools into letting the filesystem be resized as desired
To post a comment you must log in.
PASSED: Continuous integration, rev:6763d7eb536 b9f07e29e4e0325 89cee693be9d0d /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 552/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 552/rebuild
https:/