Fix growpart error with older blkid versions (#54)
Certain older distributions (e.g. CentOS 7.9) include outdated versions (from 2013) of
blkid
. Because long options were added in 2017, using the “original”, short form to check the version would make this script work with theseblkid
versions instead of failing withblkid: invalid option -- '-'
cloud-utils
A useful set of utilities for interacting with a cloud.
Install
cloud-utils is available in Ubuntu and Debian via the
cloud-utils
metapackage:Red Hat based distributions offer the
cloud-utils
package with a subset of binaries andcloud-utils-growpart
for growpart.The package is also available in Alpine and Arch as
cloud-utils
.Usage
cloud-localds
- create a disk for cloud-init to utilize the nocloud datasourceec2metadata
- query and display AWS EC2 metadatagrowpart
- rewrite partition table so that partition takes up all the space it canmount-image-callback
- mount a file to a temporary mount point and then invoke the provided cmd with argsresize-part-image
- resize a partition image and contained filesystem to a new sizeubuntu-cloudimage-query
- get the latest Ubuntu AWS AMI meeting certain criteriavcs-run
- obtain a repository and execute a command with argumentswrite-mime-multipart
- utilty for creating mime-multipart files, likely for use via user data and cloud-initGetting help
If you find a bug or issue please report it on the upstream Launchpad project.
License
Distributed under the GPLv3 License. See LICENSE for more information.