From 3a0c79e83cba9e53d2878aaed33c5ef10bc50efa Mon Sep 17 00:00:00 2001 From: Mark Peek Date: Mon, 22 Jul 2024 15:01:12 -0700 Subject: [PATCH] Add EXT4_FEATURE_INCOMPAT_CSUM_SEED to EXT2_DRIVER_IGNORED_INCOMPAT After installing alpine-standard-3.20.1-x86_64.iso into a bhyve VM grub did not recognize the filesystem and would not boot. This was caused by the filesystem using the metadata_csum_seed feature that was not supported by this version of grub. --- grub-core/fs/ext2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/grub-core/fs/ext2.c b/grub-core/fs/ext2.c index bd1ab24..f342bba 100644 --- a/grub-core/fs/ext2.c +++ b/grub-core/fs/ext2.c @@ -101,6 +101,7 @@ GRUB_MOD_LICENSE ("GPLv3+"); #define EXT4_FEATURE_INCOMPAT_EXTENTS 0x0040 /* Extents used */ #define EXT4_FEATURE_INCOMPAT_64BIT 0x0080 #define EXT4_FEATURE_INCOMPAT_FLEX_BG 0x0200 +#define EXT4_FEATURE_INCOMPAT_CSUM_SEED 0x2000 /* The set of back-incompatible features this driver DOES support. Add (OR) * flags here as the related features are implemented into the driver. */ @@ -115,7 +116,8 @@ GRUB_MOD_LICENSE ("GPLv3+"); * ext3 driver to mount the volume will find the journal and * replay it, potentially corrupting the metadata written by * the ext2 drivers. Safe to ignore for this RO driver. */ -#define EXT2_DRIVER_IGNORED_INCOMPAT ( EXT3_FEATURE_INCOMPAT_RECOVER ) +#define EXT2_DRIVER_IGNORED_INCOMPAT ( EXT3_FEATURE_INCOMPAT_RECOVER \ + | EXT4_FEATURE_INCOMPAT_CSUM_SEED ) #define EXT3_JOURNAL_MAGIC_NUMBER 0xc03b3998U