Skip to content

Commit

Permalink
Ensure the libvirt group exists in /etc/group so can actually work (#897
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nettoneko authored Mar 19, 2024
1 parent d492edb commit 0922291
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,8 @@ setup-virtualization ACTION="":
echo "Adding SELinux context record for /dev/shm/looking-glass"
sudo semanage fcontext -a -t svirt_tmpfs_t /dev/shm/looking-glass
elif [[ "${OPTION,,}" =~ group ]]; then
if ! grep -q "^libvirt" /etc/group; then
grep '^libvirt' /usr/lib/group | sudo tee -a /etc/group > /dev/null
fi
sudo usermod -aG libvirt $USER
fi

0 comments on commit 0922291

Please sign in to comment.