Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
nightly-container: Enable lvmetad within container
Browse files Browse the repository at this point in the history
LVM config is modified to enable lvmetad but disable udev. The lvm2
tmpfiles config is also removed to prevent /run/lvm bind-mounts from
being overwritten.

This requires that lvmetad is enabled on the host, and the
lvmetad.socket from the host is bind-mounted within the container at
/run/lvm/lvmetad.socket .
  • Loading branch information
kshlm committed Jan 9, 2019
1 parent c896a94 commit 75e91eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extras/nightly-container/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
with_items:
- {option: "udev_rules", oldval: "1", newval: "0"}
- {option: "udev_sync", oldval: "1", newval: "0"}
- {option: "use_lvmetad", oldval: "1", newval: "0"}

# Using shell here instead of find/file modules as this is much easier
- name: Cleanup systemd targets
Expand All @@ -70,6 +69,11 @@
args:
warn: no

- name: Remove lvm2 tmpfiles config
file:
path: /usr/lib/tmpfiles.d/lvm2.conf
state: absent

- name: Update udev systemd rules
command: sed -ibak 's/ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"/ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="systemd_end"/g' /usr/lib/udev/rules.d/99-systemd.rules
args:
Expand Down

0 comments on commit 75e91eb

Please sign in to comment.