From 4db5a83ddbcf3fcc02f721045b211f63a946b947 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 29 Aug 2019 10:36:53 -0400 Subject: [PATCH] tweaks: disable obtain_device_list_from_udev lvm Because we're using lvm commands from the container but udev isn't running then we also need to disable obtain_device_list_from_udev. See: https://bugzilla.redhat.com/show_bug.cgi?id=1676612 Signed-off-by: Dimitri Savineau (cherry picked from commit 75b23017cb673e419fa2ee3f9dcb0bb2a71b456d) --- src/__DOCKERFILE_POSTINSTALL_TWEAKS__ | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/__DOCKERFILE_POSTINSTALL_TWEAKS__ b/src/__DOCKERFILE_POSTINSTALL_TWEAKS__ index c063d01f9..4d8966b04 100644 --- a/src/__DOCKERFILE_POSTINSTALL_TWEAKS__ +++ b/src/__DOCKERFILE_POSTINSTALL_TWEAKS__ @@ -1,5 +1,6 @@ # disable sync with udev since the container can not contact udev -sed -i -e 's/udev_rules = 1/udev_rules = 0/' -e 's/udev_sync = 1/udev_sync = 0/' /etc/lvm/lvm.conf && \ +sed -i -e 's/udev_rules = 1/udev_rules = 0/' -e 's/udev_sync = 1/udev_sync = 0/' -e 's/obtain_device_list_from_udev = 1/obtain_device_list_from_udev = 0/' /etc/lvm/lvm.conf && \ # validate the sed command worked as expected grep -sqo "udev_sync = 0" /etc/lvm/lvm.conf && \ -grep -sqo "udev_rules = 0" /etc/lvm/lvm.conf \ No newline at end of file +grep -sqo "udev_rules = 0" /etc/lvm/lvm.conf && \ +grep -sqo "obtain_device_list_from_udev = 0" /etc/lvm/lvm.conf \ No newline at end of file