Hi,

I noticed that the XEN distro which is automatically created if possible, when you add a kickstartable tree, does not inherit the kernel/post-kernel parameters from the original distro. So the user has no chance to change the kopts for that distro, except with the cobbler CLI.

Here is a simple patch that copies the kopts to the xen distro.



--
ciao, Uwe Gansert

SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg)
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer
Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net
listening to: "No Voices" by THYX

diff --git a/java/code/src/com/redhat/rhn/manager/kickstart/tree/BaseTreeEditOperation.java b/java/code/src/com/redhat/rhn/manager/kickstart/tree/BaseTreeEditOperation.java
index 7fee82e..a2c1b10 100644
--- a/java/code/src/com/redhat/rhn/manager/kickstart/tree/BaseTreeEditOperation.java
+++ b/java/code/src/com/redhat/rhn/manager/kickstart/tree/BaseTreeEditOperation.java
@@ -95,11 +95,16 @@ public abstract class BaseTreeEditOperation extends BasePersistOperation {
 
             Distro distro = Distro.lookupById(CobblerXMLRPCHelper.getConnection(
                     this.getUser()), tree.getCobblerId());
+            Distro xen_distro = Distro.lookupById(CobblerXMLRPCHelper.getConnection(
+            		this.getUser()), tree.getCobblerXenId());
 
             Map kOpts = distro.getKernelOptions();
             distro.setKernelOptions(getKernelOptions());
             distro.setKernelPostOptions(getPostKernelOptions());
             distro.save();
+            xen_distro.setKernelOptions(getKernelOptions());
+            xen_distro.setKernelPostOptions(getPostKernelOptions());
+            xen_distro.save();
         }
         catch (XmlRpcException xe) {
             HibernateFactory.rollbackTransaction();
_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to