cloud-utils:renovate/configure

Last commit made on 2023-12-15
Get this branch:
git clone -b renovate/configure https://git.launchpad.net/cloud-utils

Branch merges

Branch information

Name:
renovate/configure
Repository:
lp:cloud-utils

Recent commits

23c6a7b... by "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>

Add renovate.json

6e6788e... by Thomas Bechtold

Drop ubuntu-cloudimg-query (#49) (#50)

The tool is totally outdated and only covers a single cloud. In addition
it depends on querydata which is deprecated since 21.10[0] and will be
removed soon.

[0] https://discourse.ubuntu.com/t/impish-indri-release-notes/21951

ca615a4... by Xiao Liang <email address hidden>

growpart: use pt_size_bytes when partition cannot be grown

When partition cannot be grown, it is not straightforward to
understand the output.

With the patch:
$ sudo /tmp/growpart /dev/nvme0n1 2
NOCHANGE: partition 2 size is 17177755136 bytes (33550303 sectors of 512). it cannot be grown

Without the patch:
$ sudo growpart /dev/nvme0n1 2
NOCHANGE: partition 2 is size 33550303. it cannot be grown

Signed-off-by: Xiao Liang <email address hidden>

646ab04... by Paride Legovini

Release 0.33

LP: #1973042

e0a3699... by Paride Legovini

CI: run tox and tests in separate jobs

Also: don't be completely quiet when installing packages.

a247639... by Paride Legovini

CI: run tests against minimal BusyBox environment

0d2df70... by Paride Legovini

More busybox compatibility changes

Changes:
 * Use short flags for BusyBox compatibility when needed.
 * test-growpart(-lvm): run `udevadm settle` only if available.
 * Drop `rm --one-file-system` flag in mount-image-callback's cleanup().
   We check for the return code of do_umounts() instead, and avoid
   removing files if something went wrong in the umount process.

1aa1ab0... by Dermot Bradley

busybox compatibility changes

This patch replaces long options for cmp, getopt, and truncate with
short options that are supported by both Busybox's implementation
and also the full implementations.

c00ff0c... by Dermot Bradley

growpart: Add support for overprovisioning (#35)

Add option to 'growpart' to specify percentage of device that should be
left unallocated when growing partition. This is intended for consumer
SSDs and SD cards where the performance and/or lifetime of these devices
can be improved if some disk space (in addition to any the device "hides"
from users) is left unallocated.

Overprovisioning code caters for several distinct scenarios:

(1) MSDOS/MBR partitioned disk where the disk is >2TB and so MBR
    partitions cannot extend beyond 2TB - if disk is larger than
    (2TB + overprovisioning requirement) then nothing needs to be
    done.

(2) MSDOS/MBR partitioned disk where the disk is >2TB and so MBR
    partitions cannot extend beyond 2TB - if disk is not larger
    than (2TB + overprovisioning requirement) then *some*
    overprovisioning space still needs to be reserved.

(3) MSDOS/MBR partitioned disk <=2TB where overprovisioning space
    needs to be reserved.

(4) GPT partitioned disk where overprovisioning space needs to be
    reserved.

Also added a testcase script, test-growpart-overprovision.

Also correct some off-by-one errors in the existing growpart code and
correct some existing testcases affected by this.

5c24f6a... by Dermot Bradley

mount-image-callback: do not rely on udevadm

Enable mount-image-callback to run without requiring udevadm so that
it can be used on mdev-based and other non-udev based systems also.