java/code/src/com/redhat/rhn/manager/kickstart/tree/BaseTreeEditOperation.java | 7
+++++++
1 file changed, 7 insertions(+)
New commits:
commit 4fe5b85b5b7b64717c73e633b6c8387804327641
Author: Uwe Gansert <ug(a)suse.de>
Date: Wed Jul 11 13:38:33 2012 +0200
Copying kopts to the xen distro.
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.
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..9f5b053 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,18 @@ 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();
+ if (xen_distro != null) {
+ xen_distro.setKernelOptions(getKernelOptions());
+ xen_distro.setKernelPostOptions(getPostKernelOptions());
+ xen_distro.save();
+ }
}
catch (XmlRpcException xe) {
HibernateFactory.rollbackTransaction();
Show replies by date