From 7d71769b721cca23ced26453d303112515b0a508 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 24 May 2022 18:12:18 +0200 Subject: [PATCH] Do not mess up with distro-provided machines mount var-lib-machines.mount is provided by systemd-container package on ubuntu/debian [1] With package update our file will be overriden which end up on mount failure. To avoid that we place it as override to /etc/ [1] https://packages.ubuntu.com/focal/amd64/systemd-container/filelist Change-Id: I226ab48b1ff7ec3c7da963e00e76b24b2b79608c Closes-Bug: #1973762 --- tasks/lxc_cache_rootfs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lxc_cache_rootfs.yml b/tasks/lxc_cache_rootfs.yml index df9d2158..10a805a3 100644 --- a/tasks/lxc_cache_rootfs.yml +++ b/tasks/lxc_cache_rootfs.yml @@ -35,7 +35,7 @@ - name: Move machines mount into place copy: src: var-lib-machines.mount - dest: /lib/systemd/system/var-lib-machines.mount + dest: /etc/systemd/system/var-lib-machines.mount register: mount_unit - name: Reload the System daemon