Skip to contentSkip to conversation

ext4: add crc32c soft dependency

PATCH New Dmitry V. Levin 1 participant 1 message Apr 28, 2018 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: add crc32c soft dependency

Starting with commit a45403b51582, ext4 unconditionally requires a crc32c provider, which broke certain mkinitrd setups.

Add a soft dependency on crc32c so that mkinitrd, dracut, and other initrd image generators could include the required helper module.

The dependency on crc32c is quite hard but there seems to be no mechanism to specify a dependency on an alias, so let's use this soft dependency as a workaround.

Fixes a45403b51582 ("ext4: always initialize the crc32c checksum driver")
---
 fs/ext4/super.c | 1 +
 1 file changed, 1 insertion(+)
fs/ext4/super.c +1 -0
index 185f7e6..eb104e8 100644
@@ -5886,5 +5886,6 @@ static void __exit ext4_exit_fs(void)
 MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others");
 MODULE_DESCRIPTION("Fourth Extended Filesystem");
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crc32c");
 module_init(ext4_init_fs)
 module_exit(ext4_exit_fs)
Signature · 1 line
ldv