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
This commit is contained in:
Riccardo Pittau 2019-05-06 17:00:23 +02:00
parent 73208b48b7
commit 4e086f9f0f
1 changed files with 5 additions and 0 deletions

View File

@ -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" ]