Skip to content

Commit

Permalink
tweaks: disable obtain_device_list_from_udev lvm
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 75b2301)
  • Loading branch information
dsavineau committed Aug 29, 2019
1 parent 89c69a1 commit c3e7496
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/__DOCKERFILE_POSTINSTALL_TWEAKS__
Original file line number Diff line number Diff line change
@@ -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
grep -sqo "udev_rules = 0" /etc/lvm/lvm.conf && \
grep -sqo "obtain_device_list_from_udev = 0" /etc/lvm/lvm.conf

0 comments on commit c3e7496

Please sign in to comment.