Skip to content
Snippets Groups Projects
Commit 309d363d authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Test for presence of /dev/kvm before setting permissions"

parents 045bb325 93e164d9
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# If libvirt is not installed on the host permissions need to be set
chmod 660 /dev/kvm
chown root:kvm /dev/kvm
# If running in qemu, we don't need to set anything as /dev/kvm won't exist
if [[ -c /dev/kvm ]]; then
chmod 660 /dev/kvm
chown root:kvm /dev/kvm
fi
echo "Starting libvirtd."
exec /usr/sbin/libvirtd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment