Merge ~minagalic/cloud-init:fix/fbsd-resizefs into cloud-init:master
Proposed by
Mina Galić
Status: | Merged |
---|---|
Approved by: | Chad Smith |
Approved revision: | 7a42186003638aa69821ca6e9b30f736aee1632f |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~minagalic/cloud-init:fix/fbsd-resizefs |
Merge into: | cloud-init:master |
Diff against target: |
108 lines (+47/-8) 2 files modified
cloudinit/config/cc_resizefs.py (+7/-0) tests/unittests/test_handler/test_handler_resizefs.py (+40/-8) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Mina Galić (community) | Needs Resubmitting | ||
Chad Smith | Needs Fixing | ||
Review via email: mp+357723@code.launchpad.net |
Commit message
resizefs: Prefix discovered devpath with '/dev/' when path does not exist
In some environments, like FreeBSD, gpart can return the device basename
instead of the full path. If this discovered devpath does not exist and
is missing the '/dev/' prefix, add that prefix in an attempt to find the
device.
Description of the change
If the device name doesn't start with `/dev/` check there for its existence!
To post a comment you must log in.
Hi,
Thank you for contributing to cloud-init.
To contribute, you must sign the Canonical Contributor License Agreement (CLA) [1].
If you have already signed it as an individual, your Launchpad user will be listed in the contributor- agreement- canonical launchpad group [2]. Unfortunately there is no easy way to check if an organization or company you are doing work for has signed. If you are unsure or have questions, email <email address hidden> or ping smoser in #cloud-init channel via freenode.
For information on how to sign, please see the HACKING document [3].
Thanks again, and please feel free to reach out with any questions.
– www.canonical. com/contributor s /launchpad. net/~contributo r-agreement- canonical/ +members cloudinit. readthedocs. io/en/latest/ topics/ hacking. html
[1] http://
[2] https:/
[3] http://