Merge "Test for presence of /dev/kvm before setting permissions"
This commit is contained in:
commit
309d363d45
|
@ -1,8 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# If libvirt is not installed on the host permissions need to be set
|
# If libvirt is not installed on the host permissions need to be set
|
||||||
chmod 660 /dev/kvm
|
# If running in qemu, we don't need to set anything as /dev/kvm won't exist
|
||||||
chown root:kvm /dev/kvm
|
if [[ -c /dev/kvm ]]; then
|
||||||
|
chmod 660 /dev/kvm
|
||||||
|
chown root:kvm /dev/kvm
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Starting libvirtd."
|
echo "Starting libvirtd."
|
||||||
exec /usr/sbin/libvirtd
|
exec /usr/sbin/libvirtd
|
||||||
|
|
Loading…
Reference in New Issue