From bbda33a25dc5f0da89f92fb30aaa40d88b7f06ac Mon Sep 17 00:00:00 2001 From: WorMzy Tykashi Date: Mon, 3 Mar 2014 01:17:29 +0000 Subject: add btrfs module quirk for linux 3.14 This patch adds in some extra hackery to make sure that users with btrfs root filesystems don't end up with unusable initrds due to the following change made upstream [1]. TL;DR: The btrfs module has dropped it's libcrc32c dependency, so mkinitcpio no longer pulls in the crc32c module necessary for the btrfs module to be inserted. The crc32c module was only pulled in previously due to mkinitcpio hackery [2], so extra hackery now seems like the logical path. This problem can be experienced by using linux-mainline on an Arch machine with a btrfs root filesystem. Besides from this extra hackery, an alternative workaround would be for users in this situation to add crc32c to their MODULES aray in their mkintcpio.conf. Of course, this needs to be done ahead of the linux-3.14 upgrade for them to avoid the problem (assuming none of their other modules depend on libcrc32c). [1] http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg30912.html [2] https://projects.archlinux.org/mkinitcpio.git/tree/functions?id=v16#n398 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 33bd28d..2d38815 100644 --- a/functions +++ b/functions @@ -402,7 +402,7 @@ add_module() { ocfs2) add_module "configfs?" ;; - libcrc32c) + btrfs|libcrc32c) add_module "crc32c_intel?" add_module "crc32c?" ;; -- cgit v1.2.3-24-g4f1b