Try changing the cwd for libvirt to pick bios

This commit is contained in:
James Page 2018-11-05 09:52:13 +00:00
parent a2c792690a
commit b414c718ca
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,6 @@
#!/bin/sh -e
# Workaround to ensure BIOS can be loaded
cd $SNAP/qemu
exec "$SNAP/sbin/libvirtd"

View File

@ -215,10 +215,17 @@ apps:
# Libvirt/Qemu
libvirt-bin:
command: sbin/libvirtd
command: launch-libvirtd
daemon: simple
environment:
LD_LIBRARY_PATH: $SNAP/lib:$SNAP/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/usr/lib:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET
PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH
LC_ALL: C
virsh:
command: virsh
environment:
PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH
LC_ALL: C
# MySQL
# MySQL
@ -605,6 +612,14 @@ parts:
# * is not used to avoid directory merge conflicts
snap/microstack/current/: ./
libvirtd-wrapper:
source: ./snap-wrappers/libvirtd
plugin: dump
after:
- libvirt
organize:
launch-libvirtd: bin/launch-libvirtd
# MySQL
mysql-server:
plugin: dump