fix(just): correctly generate tmpfile config with sudo heredoc

This commit is contained in:
HikariKnight 2024-02-13 00:32:29 +01:00
parent 510f8564da
commit 542b716292

View File

@ -53,8 +53,9 @@ enable-vfio:
# Add SELinux file context for default looking-glass shm file so that libvirt can create it when needed # Add SELinux file context for default looking-glass shm file so that libvirt can create it when needed
selinux-looking-glass: selinux-looking-glass:
sudo tee << 'LOOKING_GLASS_TMP' > /etc/tmpfiles.d/10-looking-glass.conf #!/usr/bin/bash
sudo bash -c "tee << LOOKING_GLASS_TMP > /etc/tmpfiles.d/10-looking-glass.conf
# Type Path Mode UID GID Age Argument # Type Path Mode UID GID Age Argument
f /dev/shm/looking-glass 0660 1000 qemu - f /dev/shm/looking-glass 0660 1000 qemu -
LOOKING_GLASS_TMP LOOKING_GLASS_TMP"
sudo semanage fcontext -a -t svirt_tmpfs_t /dev/shm/looking-glass sudo semanage fcontext -a -t svirt_tmpfs_t /dev/shm/looking-glass