1) Build the XML beforehand. Use different xml files like base.xml , network.xml and so which will be merged together to build the final xml. Drawback: You need some additional xslt scripts to merge correctly. Could be supplied on request. 2) Change the final XML with a pre-script ( Final XML must be named /tmp/profile/modified.xml , this file will be reread by autoyast after the pre-scripts has run. ) Example: ( Setting the IP of the Installation server in the final XML file. ) <scripts> <pre-scripts config:type="list"> <script> <filename>cfg_pre</filename> <interpreter>shell</interpreter> <source><![CDATA[ echo "INFO: Running $(basename $0 )" ## Can be used to do lasted modification to the final xml file # Just copy /tmp/profile/autoinst.xml to /tmp/profile/modified.xml and modify it # yast will read the final modified xml v_dummy=$(echo -e \\0100) # Give us the @ echo -e "INFO:\tReplacing ${v_dummy}INSTSERVER${v_dummy} in /tmp/profile/modified.xml ." v_instServer=$( cat /etc/install.inf | awk ' ( $1 ~ "^Server:" ) { print $2} ' ) v_dummy=${v_dummy}INSTSERVER${v_dummy} sed "s/${v_dummy}/${v_instServer}/g" /tmp/profile/autoinst.xml > /tmp/profile/modified.xml .... Hth Hajo -----Original Message----- From: Joschi Brauchle [mailto:joschi.brauchle@tum.de] Sent: Wednesday, November 30, 2011 10:16 AM To: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] How to remove entry from XML file with merging? Hello everyone, I have the following problem: We have an autoyast base-profile.xml for all our Linux machines, which includes --------- <software> <remove-packages config:type="list"> <package>NetworkManager</package> </remove-packages> </software> --------- because all those machines use the traditional ifup method. Now, I want to integrate a mobile workstation, which should use NetworkManager to manage LAN/WLAN/VPN connections. Thus, I would somehow have to remove the above entry by merging with another XML. Otherwise I cannot install NetworkManager as a regular <package>. I guess that is not possible? I can only add/change entries by merging with another XMl, but not remove thing... correct? (Of course I could remove that line from the base-profile.xml, but so far I'm looking for a better solution) Is it possible to work on the final installation XML file (after merging is done) with a pre-script? How would I get the path to that file? So far, it looks like it is burried somewhere in /tmp/Yast-XXXXXX-YYYYY/ during installation... Thanks for your help! Regards, Joschi Brauchle -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org