fix(dx): adds a systemd unit workaround service to relabel libvirt files (#1586)
This commit is contained in:
parent
1e47fda91b
commit
e023b60925
3 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -0,0 +1 @@
|
|||
d /var/log/libvirt 0750 - - - -
|
||||
Loading…
Reference in a new issue