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
This commit is contained in:
Dmitriy Rabotyagov 2022-05-24 18:12:18 +02:00 committed by Dmitriy Rabotyagov
parent b57db77442
commit 7d71769b72
1 changed files with 1 additions and 1 deletions

View File

@ -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