rpms/kvm/devel kvm.spec,1.71.4.1,1.71.4.2

Eduardo Habkost ehabkost at fedoraproject.org
Fri Oct 3 15:28:03 UTC 2008


Author: ehabkost

Update of /cvs/pkgs/rpms/kvm/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24634

Modified Files:
      Tag: private-ehabkost-no_pcbios_binaries-branch
	kvm.spec 
Log Message:
Symlinks to etherboot binaries




Index: kvm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kvm/devel/kvm.spec,v
retrieving revision 1.71.4.1
retrieving revision 1.71.4.2
diff -u -r1.71.4.1 -r1.71.4.2
--- kvm.spec	3 Oct 2008 15:19:37 -0000	1.71.4.1
+++ kvm.spec	3 Oct 2008 15:27:33 -0000	1.71.4.2
@@ -29,6 +29,10 @@
 ExclusiveArch: %{ix86} x86_64 ia64
 Requires: initscripts >= 8.08-1
 
+# We use the roms on /usr/share/etherboot
+Requires: etherboot-roms-kvm
+
+
 %description
 KVM (for Kernel-based Virtual Machine) is a full virtualization solution
 for Linux on x86 hardware.
@@ -107,6 +111,21 @@
 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules
 install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules/kvm.modules
 
+
+# the pxe etherboot images will be symlinks to the images on
+# /usr/share/etherboot, as KVM doesn't know how to look
+# for other paths, yet.
+pxe_link() {
+  ln -s ../etherboot/$2.rom %{buildroot}/usr/share/kvm/pxe-$1.bin
+}
+
+pxe_link e1000 e1000-82542
+pxe_link ne2k_pci ne
+pxe_link pcnet pcnet32
+pxe_link rtl8139 rtl8139
+pxe_link virtio-net virtio-net
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -121,7 +140,7 @@
 %changelog
 * Fri Oct 03 2008 Eduardo Habkost <ehabkost at redhat.com>
 - Remove all prebuilt qemu/pc-bios binaries before building
-  - Etherboot binaries are missing, by now
+- Use symlinks to etherboot files for the pxe roms
 
 * Mon Sep 15 2008 Glauber Costa <glommer at redhat.com> - 74-4
 - fix page_find out of bounds access - #462380




More information about the fedora-extras-commits mailing list