Package: openstack-debian-images
Version: 1.13
Severity: wishlist
Tags: patch

Please remove cloud-initramfs-growroot from the images at least for
testing/unstable. Newer kernels (since 3.8) can change the partition of
the root filesystem while it's mounted, so this is no longer needed.
There is support for growing the root partition already in cloud-init.
All other major distributions use this mechanism.

The advantage of growing the partition with cloud-init is that the
behavior can be overriden by an external data source (metadata server,
config drive, ...) without modifying the image. The behavior of
cloud-initramfs-growroot can not be overriden in this way.

This would also be nice to have in jessie. The required kernel support
is available in jessie, but cloud-init from backports is needed to
activate the growpart module.

The attached patch removes cloud-initramfs-growroot from the image (not
for wheezy).

Gaudenz

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff --git a/build-openstack-debian-image b/build-openstack-debian-image
index 44a1149..035e1e6 100755
--- a/build-openstack-debian-image
+++ b/build-openstack-debian-image
@@ -207,7 +207,7 @@ if [ "${RELEASE}" = "wheezy" ] ; then
 	# apt-get -t wheezy-backports install cloud-init cloud-utils cloud-initramfs-growroot
 	NEEDED_PACKAGES=${NEEDED_PACKAGES},python,python-paramiko,python-argparse,python-cheetah,python-configobj,python-oauth,python-software-properties,python-yaml,python-boto,python-prettytable,initramfs-tools,python-requests,acpid,acpi-support-base,ntp,unscd
 else
-	NEEDED_PACKAGES=${NEEDED_PACKAGES},cloud-init,cloud-utils,cloud-initramfs-growroot,dbus,libpam-systemd,ntp,unscd
+	NEEDED_PACKAGES=${NEEDED_PACKAGES},cloud-init,cloud-utils,dbus,libpam-systemd,ntp,unscd
 fi
 
 # This is a workaround for python3-cryptography failing to install
diff --git a/build-openstack-debian-image.1 b/build-openstack-debian-image.1
index 3a62123..e2c777b 100644
--- a/build-openstack-debian-image.1
+++ b/build-openstack-debian-image.1
@@ -11,8 +11,8 @@ build\-openstack\-debian\-image \- build a Debian image to be used with OpenStac
 The
 .I build\-openstack\-debian\-image
 shell script will build a Debian image which can be used in an OpenStack IaaS
-cloud. The resulting (Qcow2 and raw images) contains initramfs\-growroot so
-that the root partition will be resized (during the initramfs phase, before
+cloud. The resulting (Qcow2 and raw images) contains cloud\-init growpart support
+so that the root partition will be resized (during the initramfs phase, before
 mouting anything) to match the flavor selected when using "nova boot". Later on
 during the boot process, cloud\-init will resize the root partition on the fly
 (resize is performed when the partition is already mounted read\-write, since

Reply via email to