From 4e086f9f0fa2cfdd215994c76025bdb7954e3610 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Mon, 6 May 2019 17:00:23 +0200 Subject: [PATCH] Do not use metadata checksums with ext4 Remove metadata_csum option when creating filesystems since cirros doesn't support it. This option was added in Debian stretch and Ubuntu bionic as default and it breaks compatibility with filesystems created with older versions. Change-Id: I6772e455f5d1ee7587c2dc43203b02e5e54cb714 --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 78cdb977e..17541441d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,4 +51,9 @@ RUN proxy.sh apt-get -y purge gcc-4.6 gcc python2.7-dev && \ RUN rm -rf /tmp/ironic-python-agent RUN rm -rf /var/lib/apt/lists/* +# Remove metadata_csum option when creating filesystems +# since cirros doesn't support it. +# This option was added in Debian stretch as default. +RUN sed -i 's/,metadata_csum//g' /etc/mke2fs.conf + CMD [ "/usr/local/bin/ironic-python-agent" ]