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.
I'm using opensuse 11.4. Autoyast gives me a pop-up "Error. Could not add add-on product" for each add-on that I specified. In the y2log file I see: Exception.cc(log):137 Error code: Connection failed Exception.cc(log):137 Error message: Couldn't resolve host 'download.opensuse.org' So that looks similar to the mailing list issue of 2 years ago. I'm doing an autoyast installation from dvd. The start of my autoinst.xml where the add-ons are specified: <?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <add-on> <add_on_products config:type="list"> <listentry> <media_url><![CDATA[http://download.opensuse.org/distribution/11.4/repo/oss/]]></media_url> <product>openSuse-oss</product> <product_dir>/</product_dir> </listentry> <listentry> <media_url><![CDATA[http://download.opensuse.org/distribution/11.4/repo/non-oss/]]></media_url> <product>openSuse-non-oss</product> <product_dir>/</product_dir> </listentry> <listentry> <media_url><![CDATA[ftp://download.nvidia.com/opensuse/11.4/]]></media_url> <product>nvidia</product> <product_dir>/</product_dir> </listentry> </add_on_products> </add-on>
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.
Yes, after changing post-script into init-script, my update script works. Thanks a lot for the update. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org