diff --git a/files/0001-supress-lvm-messages.patch b/files/0001-supress-lvm-messages.patch new file mode 100644 --- /dev/null +++ b/files/0001-supress-lvm-messages.patch @@ -0,0 +1,34 @@ +From 1956c689be58eab7167de9920bf63cf88106e238 Mon Sep 17 00:00:00 2001 +From: David Teigland +Date: Mon, 28 Mar 2022 09:35:11 -0500 +Subject: [PATCH] fix(lvm): ignore expected error message from lvm config + +The "lvm config" commands that check the filter settings will +often find nothing set and report an error message: +"Configuration node devices/filter not found" +Direct these messages to /dev/null so they do not appear as +noise in system logs. +--- + modules.d/90lvm/lvm_scan.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh +index 89f077aef..980e44907 100755 +--- a/modules.d/90lvm/lvm_scan.sh ++++ b/modules.d/90lvm/lvm_scan.sh +@@ -52,13 +52,13 @@ no_lvm_conf_filter() { + # Save lvm config results in /run to avoid running + # lvm config commands for every PV that's scanned. + +- filter=$(lvm config devices/filter | grep "$filter=") ++ filter=$(lvm config devices/filter 2> /dev/null | grep "$filter=") + if [ -n "$filter" ]; then + printf '%s\n' "$filter" > /run/lvm/initrd_filter + return 1 + fi + +- global_filter=$(lvm config devices/global_filter | grep "$global_filter=") ++ global_filter=$(lvm config devices/global_filter 2> /dev/null | grep "$global_filter=") + if [ -n "$global_filter" ]; then + printf '%s\n' "$global_filter" > /run/lvm/initrd_global_filter + return 1 diff --git a/files/series b/files/series --- a/files/series +++ b/files/series @@ -1,3 +1,4 @@ 0001-Support-stateless-glibc-ldconfig-configuration.patch 0002-multipath-Use-stateless-configuration-for-non-host-o.patch 0003-Support-an-alternative-bash-build-than-the-default.patch +0001-supress-lvm-messages.patch diff --git a/package.yml b/package.yml --- a/package.yml +++ b/package.yml @@ -1,6 +1,6 @@ name : dracut version : '056' -release : 42 +release : 43 source : - https://www.kernel.org/pub/linux/utils/boot/dracut/dracut-056.tar.xz : e025bbdce9d1209640fb3f5f674f059c7e1f441537ba421703fe56055502421d homepage : http://dracut.wiki.kernel.org/index.php/Main_Page diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml --- a/pspec_x86_64.xml +++ b/pspec_x86_64.xml @@ -3,8 +3,8 @@ dracut http://dracut.wiki.kernel.org/index.php/Main_Page - Joey Riches - josephriches@gmail.com + Reilly Brogan + solus@reillybrogan.com GPL-2.0-or-later GPL-2.0-only @@ -426,12 +426,12 @@ - - 2022-03-06 + + 2022-06-01 056 Packaging update - Joey Riches - josephriches@gmail.com + Reilly Brogan + solus@reillybrogan.com \ No newline at end of file