Browse Source

Try changing the cwd for libvirt to pick bios

configure-hook
James Page 3 years ago
parent
commit
b414c718ca
  1. 6
      snap-wrappers/libvirtd/launch-libvirtd
  2. 17
      snapcraft.yaml

6
snap-wrappers/libvirtd/launch-libvirtd

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

17
snapcraft.yaml

@ -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

Loading…
Cancel
Save