-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disk-resize: use actual partition sizes to calculate pv shift size
instead of relying on the config values and the constants for default disk-size and pv partition size, this fetches the size of disk, root and pv partition using `lsblk` and uses these values to calculate the size by which the pv partition needs to be shifted to apply requested new values for 'disk-size' and 'persistent-volume-size' configs it uses the 'strongunits' package from containers/common for bytes to GiB conversions and its types to deal with storage sizes
- Loading branch information
Showing
6 changed files
with
357 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.