[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/kernel/devel kernel-2.6.spec,1.2275,1.2276



Author: quintela

Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv27507

Modified Files:
	kernel-2.6.spec 
Log Message:
right %post for xen kernel


Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/kernel-2.6.spec,v
retrieving revision 1.2275
retrieving revision 1.2276
diff -u -r1.2275 -r1.2276
--- kernel-2.6.spec	13 Jun 2006 22:48:14 -0000	1.2275
+++ kernel-2.6.spec	13 Jun 2006 22:49:54 -0000	1.2276
@@ -1564,8 +1564,11 @@
 
 %post xen
 [ ! -x /usr/sbin/module_upgrade ] || /usr/sbin/module_upgrade %{rpmversion}-%{release}-xen
-/sbin/new-kernel-pkg --package kernel-xen --mkinitrd --depmod --install %{KVERREL}xen
-/sbin/new-kernel-pkg --package kernel-xen --mkinitrd --depmod --install --multiboot=/boot/xen.gz-%{KVERREL} %{KVERREL}xen
+if [ -e /proc/xen/xsd_kva ]; then 
+	/sbin/new-kernel-pkg --package kernel-xen --mkinitrd --depmod --install --multiboot=/boot/xen.gz-%{KVERREL} %{KVERREL}xen
+else 
+	/sbin/new-kernel-pkg --package kernel-xen --mkinitrd --depmod --install %{KVERREL}xen
+fi
 [ ! -x /sbin/ldconfig ] || /sbin/ldconfig -X
 
 %post xen-devel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]