on Thursday 09 June 2011 winfried_mb2@xmsnet.nl wrote:
I'm trying to let autoyast do an online update during installation. First I tried with
<do_online_update config:type="boolean">true</do_online_update>
but that didn't work. Moreover I read here
what SUSE version? What did not work? Did you see an error message?
http://lists.opensuse.org/opensuse-autoinstall/2009-04/msg00028.html
that if you want to add repositories you should do the update at the end of the installation.
that was true 2 years ago but it should be fixed in the meantime.
So now I'm trying to do it in a post-install script (see below), but then I get the following feedback:
+zypper ar -f http://download.opensuse.org/update/11.4 updates System management is locked by the application with pid 2579 (y2base). Close this application before trying again.
http://www.suse.de/~ug/AutoYaST_FAQ.html#ac "1.13 Can I call zypper from scripts?"
So what is the best time to do the update?
if you do network installations, you can add the update repo as an add-on. Then the latest RPMs are getting installed in the 1st stage. do_online_update should work too but then the updates are done in the 2nd stage. In the 1st stage outdated RPMs might getting installed. you can do an update with an init-script in the 2nd stage too by a self written script. When autoyast init-scripts are run, the RPM database is not locked anymore by yast. -- ciao, Uwe Gansert 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: "Domination vs. Bound (Mindless Faith)" by Seabound -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org