Skip to content
Snippets Groups Projects
Commit 4c0338a7 authored by Michael Prokop's avatar Michael Prokop
Browse files

Fix hidden dependency issue with btrfs and crc32c

Quoting Markus Wanner in #748805:

| Since Linux 3.14 (or 0b947aff1599afbbd2ec07ada87b05af0f94cf10, to be
| precise), the btrfs module no longer depends on libcrc32c, but only on
| crc32c. However, this is one of the "hidden" dependencies, so
| modules.dep doesn't list it. If mkinitramfs doesn't happen to include
| crc32c for some other reason, an initrd without that module is
| generated, even if btrfs needs it to boot. For me, this led to the same
| error upon boot, as others have posted, before:
|
| modprobe: can't load module btrfs (kernel/fs/btrfs/btrfs.ko): unknown
| symbol in module, or unknown parametr
|
| (Without any further hints in dmegs, BTW)
|
| The attached patch adds an entry to the list of hidden dependencies to
| /usr/share/initramfs-tools/hook-functions to fix this issue. This also
| renders the work-around proposed by Tristan unnecessary.

Thanks: Markus Wanner <markus@bluegap.ch> for the analysis and patch
Closes: #748805
parent 2e325a2b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment