]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lvm: silence errors from "lvm dumpconfig"
authorHarald Hoyer <harald@redhat.com>
Mon, 23 Nov 2015 10:09:47 +0000 (11:09 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 25 Nov 2015 13:21:33 +0000 (14:21 +0100)
if the config option does not exist, we ignore the error anyway

modules.d/90lvm/module-setup.sh

index 42dda5750020ef6aed43c7f78bdb89e71dcd9202..c4db779a82e5425e9607162c3657ae387deee71d 100755 (executable)
@@ -73,7 +73,7 @@ install() {
         if [ -f /etc/lvm/lvmlocal.conf ]; then
             inst_simple -H /etc/lvm/lvmlocal.conf
         fi
-        eval $(lvm dumpconfig global/system_id_source)
+        eval $(lvm dumpconfig global/system_id_source &>/dev/null)
         if [ "$system_id_source" == "file" ]; then
             eval $(lvm dumpconfig global/system_id_file)
             if [ -f "$system_id_file" ]; then