From 8626a26d9acf92759c7b0e7850e40df4fdf5c8e9 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 14 Apr 2022 13:53:40 +0100 Subject: [PATCH] Ensure systemd-udev is present in centos containers This is needed to ensure that systemd-tmpfiles-setup service is present, which is used to create /dev/fuse in centos containers in other parts of the osa-gluster patch series. Change-Id: I6a6401debad4937eb9f6a5be31c8cee42d7035cd --- templates/prep-scripts/redhat_prep.sh.j2 | 3 +++ vars/redhat.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/templates/prep-scripts/redhat_prep.sh.j2 b/templates/prep-scripts/redhat_prep.sh.j2 index 00ec437b..e17e7de1 100644 --- a/templates/prep-scripts/redhat_prep.sh.j2 +++ b/templates/prep-scripts/redhat_prep.sh.j2 @@ -31,6 +31,9 @@ chage -I -1 -d -1 -m 0 -M 99999 -E -1 root echo "nameserver {{ lxc_net_address }}" > /etc/resolv.conf systemctl enable systemd-networkd systemctl enable systemd-resolved +systemctl enable systemd-tmpfiles-setup +systemctl enable systemd-tmpfiles-setup-dev +systemctl enable systemd-tmpfiles-clean # Fully disable systemd-logind systemctl disable systemd-logind diff --git a/vars/redhat.yml b/vars/redhat.yml index f95d77ed..f7cf1b9a 100644 --- a/vars/redhat.yml +++ b/vars/redhat.yml @@ -53,4 +53,5 @@ _lxc_cache_distro_packages: - systemd-networkd - systemd-resolvd - systemd-sysv + - systemd-udev - tzdata