[opensuse-autoinstall] opensuse 11.4 and Post-Packages
Hello, yes, I know, it is a known bug. But I have to install some packages as postpackes. I searched and found a solution, but I think I do anythuing wrong at it. I tried to fix it like described here: https://bugzilla.novell.com/show_bug.cgi?id=679435#c45 So, my xml looks as follows.... --------------------- [...] <service> <service_name>smbfs</service_name> <service_start>disable</service_start> </service> <service> <service_name>splash</service_name> <service_start>disable</service_start> </service> </services> </runlevel> <x11> <color_depth config:type="integer">16</color_depth> <display_manager>kdm</display_manager> <enable_3d config:type="boolean">false</enable_3d> <monitor> <monitor_device>1280X1024@60HZ</monitor_device> <monitor_vendor>--> VESA</monitor_vendor> </monitor> <resolution>1280x1024 (SXGA)</resolution> <window_manager>kde</window_manager> </x11> <chroot-scripts config:type="list"> <script> <!-- Fix post-packages bug --> <chrooted config:type="boolean">true</chrooted> <filename>fix_postinstall_bug.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[#!/bin/bash ( while [ ! -f /var/lib/YaST2/installation_disabled_steps ]; do sleep 1 done cp /var/lib/YaST2/installation_disabled_steps /var/lib/YaST2 /installation_disabled_steps.bkp cat /var/lib/YaST2/installation_disabled_steps.bkp | grep -v "rpmcopy_secondstage" > /var/lib/YaST2/installation_disabled_steps) &]]> </source> </script> </chroot-scripts> </profile> ---------------------------- But this didn't work. So, I think I have an error at the syntax. Or do I have to put the chroot-scripts elsewhere in the xml? Regards Daniel -- Daniel Spannbauer Software Entwicklung marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11 Rechbergstr. 4 - 6, D 87727 Babenhausen Mobil +49 171 4033220 http://www.marco.de/ Email ds@marco.de Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Yes, you do have a syntax error. You need to add the surrounding "scripts" section, try: <scripts> <chroot-scripts config:type="list"> ....... </chroot-scripts> </scripts> See http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html for reference! On 11/25/2011 09:35 AM, Daniel Spannbauer wrote:
Hello,
yes, I know, it is a known bug. But I have to install some packages as postpackes.
I searched and found a solution, but I think I do anythuing wrong at it.
I tried to fix it like described here: https://bugzilla.novell.com/show_bug.cgi?id=679435#c45
So, my xml looks as follows....
--------------------- [...]
<service> <service_name>smbfs</service_name> <service_start>disable</service_start> </service> <service> <service_name>splash</service_name> <service_start>disable</service_start> </service> </services> </runlevel> <x11> <color_depth config:type="integer">16</color_depth> <display_manager>kdm</display_manager> <enable_3d config:type="boolean">false</enable_3d> <monitor> <monitor_device>1280X1024@60HZ</monitor_device> <monitor_vendor>--> VESA</monitor_vendor> </monitor> <resolution>1280x1024 (SXGA)</resolution> <window_manager>kde</window_manager> </x11> <chroot-scripts config:type="list"> <script> <!-- Fix post-packages bug --> <chrooted config:type="boolean">true</chrooted> <filename>fix_postinstall_bug.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[#!/bin/bash ( while [ ! -f /var/lib/YaST2/installation_disabled_steps ]; do sleep 1 done cp /var/lib/YaST2/installation_disabled_steps /var/lib/YaST2 /installation_disabled_steps.bkp cat /var/lib/YaST2/installation_disabled_steps.bkp | grep -v "rpmcopy_secondstage"> /var/lib/YaST2/installation_disabled_steps)&]]> </source> </script> </chroot-scripts>
</profile> ----------------------------
But this didn't work. So, I think I have an error at the syntax. Or do I have to put the chroot-scripts elsewhere in the xml?
Regards
Daniel
-- Dipl.-Ing. Joschi Brauchle, M.Sc. Institute for Communications Engineering (LNT) Technische Universitaet Muenchen (TUM) 80290 Munich, Germany Tel (work): +49 89 289-23474 Fax (work): +49 89 289-23490 E-mail: joschi.brauchle@tum.de Web: http://www.lnt.ei.tum.de/
participants (2)
-
Daniel Spannbauer
-
Joschi Brauchle