mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
21 lines
507 B
Bash
Executable File
21 lines
507 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
shopt -s inherit_errexit
|
|
|
|
# ensure library cache is up to date
|
|
ldconfig
|
|
|
|
chown -R tss:root /var/lib/swtpm-localca
|
|
|
|
# Assign qemu the GID of the host system's 'kvm' group to avoid permission issues for environments defaulting to 660 for /dev/kvm (e.g. Debian-based distros)
|
|
KVM_HOST_GID="$(stat -c '%g' /dev/kvm)"
|
|
groupadd -o -g "${KVM_HOST_GID}" host-kvm
|
|
usermod -a -G host-kvm qemu
|
|
|
|
# Start libvirt daemon
|
|
libvirtd --daemon --listen
|
|
virtlogd --daemon
|
|
|
|
sleep infinity
|