From 5b232aeb3fdaf9502cf1d0959fc8ba6a4124167f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 16 2018 12:49:53 +0000 Subject: import dracut-033-535.el7_5.1 --- diff --git a/SOURCES/0001-dracut.sh-workaround-broken-read-from-proc-modules.patch b/SOURCES/0001-dracut.sh-workaround-broken-read-from-proc-modules.patch new file mode 100644 index 0000000..99f25ba --- /dev/null +++ b/SOURCES/0001-dracut.sh-workaround-broken-read-from-proc-modules.patch @@ -0,0 +1,46 @@ +From 14af2ab39994576bda1d2a6b9c7980f08473e784 Mon Sep 17 00:00:00 2001 +From: Lukas Nykryn +Date: Mon, 11 Jun 2018 11:07:59 +0200 +Subject: [PATCH] dracut.sh: workaround broken read from /proc/modules + +RHEL-only (upstream is using libkmod) +Resolves: #1578222 +--- + dracut.sh | 21 +++++++++++++++++---- + 1 file changed, 17 insertions(+), 4 deletions(-) + +diff --git a/dracut.sh b/dracut.sh +index 873274c..9dadece 100755 +--- a/dracut.sh ++++ b/dracut.sh +@@ -1145,10 +1145,23 @@ if [[ $hostonly ]]; then + + # check /proc/modules + declare -A host_modules +- while read m rest; do +- [ -z "$m" ] && continue +- host_modules["$m"]=1 +- done - 033-535.1 +- dracut.sh: workaround broken read from /proc/modules +Resolves: #1578222 + * Mon Feb 19 2018 Lukas Nykryn - 033-535 - 90lvm: always add dm-snapshot Resolves: #1546577