summarylogtreecommitdiffstats
path: root/libvirt.install
blob: 706a20a7de350f2491d20652ee10d5d2b728173b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
_libvirt_setup() {
  systemd-tmpfiles --create libvirt.conf
}

post_install() {
  _libvirt_setup || return 1
  groupadd -r -f libvirt
  echo ">>> libvirt runs qemu from nobody:kvm by default"
  echo ">>> change the USER if desired in /etc/libvirt/qemu.conf"
  echo ">>> See https://wiki.archlinux.org/index.php/Libvirt for more info"
}

post_upgrade() {
  _libvirt_setup || return 1
  echo ">>> You may need to run 'rm -rf ~/.libvirt'"
}