From 76c57f564241abe33228e15c9d109c3fa6da0701 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Tue, 15 Jun 2021 17:15:38 -0400 Subject: [PATCH] image-base.yaml: set bootfs_metadata_csum_seed to true This will tell COSA to set the metadata_csum_seed filesystem feature for the boot filesystem. This helps us not have to run a filesystem check before running tune2fs to randomize the filesystem UUID on first boot. See https://github.com/coreos/fedora-coreos-tracker/issues/735 for more context. Depends on https://github.com/coreos/coreos-assembler/pull/2228 --- image-base.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/image-base.yaml b/image-base.yaml index 1aabf6ace6..3d9e1d5d1b 100644 --- a/image-base.yaml +++ b/image-base.yaml @@ -21,6 +21,15 @@ ostree-remote: fedora # https://github.com/ostreedev/ostree/issues/1265 sysroot-readonly: true +# opt in to using the `metadata_csum_seed` feature of the ext4 filesystem +# for the /boot filesystem. Support for this was only recently added to grub +# and isn't available everywhere yet so we'll gate it behind this image.yaml +# knob. It should be easy to know when RHEL/RHCOS supports this by just flipping +# this to `true` and doing a build. It should error when building the disk +# images if grub doesn't support it. +# https://lists.gnu.org/archive/html/grub-devel/2021-06/msg00031.html +bootfs_metadata_csum_seed: true + # After this, we plan to add support for the Ignition # storage/filesystems sections. (Although one can do # that on boot as well)