[opensuse-autoinstall] Can't get online update to work in autoyast install
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 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. 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. +zypper ar -f ftp://download.nvidia.com/opensuse/11.4/ nvidia System management is locked by the application with pid 2579 (y2base). Close this application before trying again. +zypper --non-interactive --gpg-auto-import-keys update --auto-agree-with-licenses --force-resolution System management is locked by the application with pid 2579 (y2base). Close this application before trying again. So what is the best time to do the update? Thanks a lot in advance for any help, Winfried autoinstall.xml snippet: <scripts> <post-scripts config:type="list"> <script> <source> <![CDATA[ zypper ar -f http://download.opensuse.org/update/11.4 updates zypper ar -f ftp://download.nvidia.com/opensuse/11.4/ nvidia zypper --non-interactive --gpg-auto-import-keys update --auto-agree-with-licenses --force-resolution ]]> </source> <network_needed config:type="boolean">true</network_needed> <interpreter>shell</interpreter> <notification>Please wait while online update is running ...</notification> <feedback config:type="boolean">true</feedback> </script> </post-scripts> </scripts> -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
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
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
Hi List! We use AutoYaST to set up SLES11 servers, both in VMs in an ESX 4.1 environment and on physical servers (HP proliant). Since we have an ESX cluster, we use shared storage on a SAN. As I read in some docs and discussions on the web it is recommended to make a correct alignment when partitioning disks, both for the VMFS's on our SAN and the guest OS disks (vmdk) and even for the LUNs of the proliant RAID crontrollers. Concerning a VMFS on a LUN in our storage the alignment is automatically done when the VMFS is created by VI client / vCenter. Concerning other disks (proliant RAID and VMDK) there are only instructions how to align disks manually before installing - manually. We know people have different opinions about the necessity of aligning boot disks rather than data disks. But despite this discussion, we'd like to know if there's a way to do the alignment during automatic installation. According to our profiles AutoYaST [re]creates the needed partitions. And we think preparing the necessary partitions prior to installing and then use the existing partitions with AutoYaST is not an option, because we sometimes "reuse" servers which might have been partitioned with a different partitioning scheme. What I read from the doc, there is no parameter for the alignment in the <partition> ... </partition> tag. Since alignment is done on an existing partition Pre-Install Scripts are to early and Postpartitioning Scripts seem to late. So, are there any other suggestions? Or is this a feature of an upcoming version? Maybe someone can tell about his/her everyday practice? Thanks in advance! Greetings from Berlin Thomas Zimolong Federal Ministry of the Interior of the Federal Republic of Germany Z 6 - Server/Client/Storage Alt-Moabit 101 D D-10559 Berlin Fon +49(0)30 18 681 2383 Fax +49(0)30 18 681 -5- 2383 mailto:thomas.zimolong@bmi.bund.de http://bmi.bund.de -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
Thomas.Zimolong@bmi.bund.de
-
Uwe Gansert
-
winfried_mb2@xmsnet.nl