* qemu-kvm: install a symlink "qemu-kvm" to "qemu-system-x86_64".

Libvirt (and Nova) expects this.

svn path=/nixpkgs/branches/modular-python/; revision=26625
This commit is contained in:
Eelco Dolstra 2011-03-31 11:57:02 +00:00
parent 02b20395d5
commit 5b1ee7a0da

View file

@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
''
# extboot.bin isn't installed due to a bug in the Makefile.
cp pc-bios/optionrom/extboot.bin $out/share/qemu/
# Libvirt expects us to be called `qemu-kvm'. Otherwise it will
# set the domain type to "qemu" rather than "kvm", which can
# cause architecture selection to misbehave.
ln -s $(cd $out/bin && echo qemu-system-*) $out/bin/qemu-kvm
'';
meta = {