File 0542-Include-crc32c-intel-module-when-using-btrfs.patch of Package dracut.12460

From 3c2699fc3f5602a13ec18a0a07d515847dc11fa9 Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <dmolkentin@suse.com>
Date: Mon, 23 Oct 2017 13:36:18 +0200
Subject: [PATCH] Include crc32c-intel module when using btrfs

Reference: bsc#1011554
---
 modules.d/90btrfs/module-setup.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh
index 9303dbe2..b0d0058b 100755
--- a/modules.d/90btrfs/module-setup.sh
+++ b/modules.d/90btrfs/module-setup.sh
@@ -26,6 +26,8 @@ depends() {
 # called by dracut
 installkernel() {
     instmods btrfs
+    # Make sure btfs can use fast crc32c implementations where available (bsc#1011554)
+    instmods crc32c-intel
 }
 
 # called by dracut
-- 
2.14.1