fix(dx): adds a systemd unit workaround service to relabel libvirt files (#1586)

This commit is contained in:
Robert Sturla 2024-08-14 15:05:00 +01:00 committed by GitHub
parent 1e47fda91b
commit e023b60925
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 0 deletions

View file

@ -5,6 +5,7 @@ set -ouex pipefail
systemctl enable docker.socket
systemctl enable podman.socket
systemctl enable swtpm-workaround.service
systemctl enable libvirt-workaround.service
systemctl enable bluefin-dx-groups.service
systemctl enable --global bluefin-dx-user-vscode.service
systemctl disable pmie.service

View file

@ -0,0 +1,13 @@
[Unit]
Description=Workaround to relabel libvirt files and directories
ConditionPathIsDirectory=/var/lib/libvirt/
After=local-fs.target
[Service]
Type=oneshot
ExecStart=-/usr/sbin/restorecon -R /var/log/libvirt/
ExecStart=-/usr/sbin/restorecon -R /var/lib/libvirt/
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1 @@
d /var/log/libvirt 0750 - - - -