Parcourir la source

mkimage: include and enable growpart in images

classabbyamp il y a 10 mois
Parent
commit
b9da2dc059
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      mkimage.sh

+ 4 - 0
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