From 43c4039b8bcc0a005b09e082e8a4aa47e659d89c Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 23 Jul 2024 23:41:46 -0400 Subject: [PATCH] mkimage: include and enable growpart in images --- mkimage.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkimage.sh b/mkimage.sh index 1d691cc..fb08c3a 100755 --- a/mkimage.sh +++ b/mkimage.sh @@ -245,6 +245,10 @@ fi # ensure ssh login is possible for headless setups. sed -i "${ROOTFS}/etc/ssh/sshd_config" -e 's|^#\(PermitRootLogin\) .*|\1 yes|g' +# Grow rootfs to fill the media on boot +run_cmd_target "xbps-install -Syr $ROOTFS cloud-guest-utils" +sed -i "${ROOTFS}/etc/default/growpart" -e 's/#ENABLE/ENABLE/' + # This section does final configuration on the images. In the case of # SBCs this writes the bootloader to the image or sets up other # required binaries to boot. In the case of images destined for a