Does anyone have XML for OpenSUSE 10.1 to cause autoyast to do an online update at install time? I am hoping this is better than the farce we have to go through at the moment to run it after the autoyast install: it has to be run, interactively, four times to get the security/recommended updates done.
Failing that, does anyone know how to run it from the command line so it doesn't need somoeone to press keys?
Ian,
at least on SuSE 9.3 (a bit old, I know) there is a command line utility called online_update ...
Volkmar
On Thu, 31 Aug 2006, Ian Grant wrote:
Does anyone have XML for OpenSUSE 10.1 to cause autoyast to do an online update at install time? I am hoping this is better than the farce we have to go through at the moment to run it after the autoyast install: it has to be run, interactively, four times to get the security/recommended updates done.
Failing that, does anyone know how to run it from the command line so it doesn't need somoeone to press keys?
Hi Ian,
yes there is a command line client: rug. You can use a postinstall-script that executes "rug up -y" for example.
Ian Grant schrieb:
Does anyone have XML for OpenSUSE 10.1 to cause autoyast to do an online update at install time? I am hoping this is better than the farce we have to go through at the moment to run it after the autoyast install: it has to be run, interactively, four times to get the security/recommended updates done.
Failing that, does anyone know how to run it from the command line so it doesn't need somoeone to press keys?
Hello!
Am 31.8.2006 11:33 Uhr schrieb "Ian Grant" unter Ian.Grant@cl.cam.ac.uk:
Does anyone have XML for OpenSUSE 10.1 to cause autoyast to do an online update at install time?
The only solution I found was to integrate the patches as an additional installsource. Using "rug" in a postinstall script is quite problematic, as it is not able to install the libzypp patch.
Be careful - you need to create an index in the mirror of the patch directory and you need an update for your install images. It will be still a lot of work and I don't think there are any step-by-step instructions in the net. I ran into too much troubles and I'm not able to document it in a way where someone else is able to follow.
Beat
Hi,
Beat Rubischon schrieb:
Am 31.8.2006 11:33 Uhr schrieb "Ian Grant" unter Ian.Grant@cl.cam.ac.uk:
Does anyone have XML for OpenSUSE 10.1 to cause autoyast to do an online update at install time?
The only solution I found was to integrate the patches as an additional installsource. Using "rug" in a postinstall script is quite problematic, as it is not able to install the libzypp patch.
thats correct but you can install the RPM prior to updating:
######################## ncftpget ftp://$<ftp-mirror>/mirror/ftp.suse.com/pub/suse/i386/update/10.1/rpm/i586/libzypp-zmd-backend.rpm ncftpget ftp://$<ftp-mirror>/mirror/ftp.suse.com/pub/suse/i386/update/10.1/rpm/i586/libzypp.rpm ncftpget ftp://$<ftp-mirror>/mirror/ftp.suse.com/pub/suse/i386/update/10.1/rpm/i586/rug.rpm ncftpget ftp://$<ftp-mirror>/mirror/ftp.suse.com/pub/suse/i386/update/10.1/rpm/i586/zmd.rpm
rpm -Uvh --nodeps *.rpm # install rpm
sleep 240 # cause rug needs to update/refresh
rug up -y # update ########################
Not really fine but it works.
Ian Grant Ian.Grant@cl.cam.ac.uk wrote on 08/31/2006 03:33:14 AM:
# Does anyone have XML for OpenSUSE 10.1 to cause autoyast to do an # online update at install time? I am hoping this is better than the # farce we have to go through at the moment to run it after the # autoyast install: it has to be run, interactively, four times to get # the security/recommended updates done.
<script> <filename>3-start_you.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[ #!/bin/sh /bin/chvt 9 exec < /dev/tty9 > /dev/tty9 echo Performing online update... online_update -l en -u http://my-system/srv/suseupdate -V SuSEconfig echo Rebooting the computer now to use the new kernel. sleep 5 /bin/chvt 1 shutdown -r now ]]> </source> </script> </init-scripts> </scripts>
On Thursday 31 August 2006 11:33, Ian Grant wrote:
Does anyone have XML for OpenSUSE 10.1 to cause autoyast to do an online update at install time?
doesn't the online-update section work that you can create with the autoyast UI? If it does not, please create a bugreport
On Fri, 1 Sep 2006 13:45:49 +0200 Uwe Gansert ug@suse.de wrote:
On Thursday 31 August 2006 11:33, Ian Grant wrote:
Does anyone have XML for OpenSUSE 10.1 to cause autoyast to do an online update at install time?
doesn't the online-update section work that you can create with the autoyast UI?
That does auto-update (i.e. cron job) configuration, and registration configuration, but nothing there will cause the online update to be run during the autoinstall.
If it does not, please create a bugreport
It doesn't. Done. See https://bugzilla.novell.com/show_bug.cgi?id=203274
But that's just a front-end. Is it possible there is some XML that will work? Moritz Schüpp's suggestion to install the updated libzypp etc. RPMs manually before running 'rug up' almost works, except the registration process sometimes fails and doesn't set up a service for updates. In those cases rug up just says 'No patches avaialble.'
I am really confused about how YOU and rug/zmd interact, or even what their relation is now. It's not that YOU (as run from YaST2 menu) just uses rug to do the work now, is it? YOU sometimes seems to see updates available that rug cannot see. So when the registration fails to set an update source I find I have to run YOU and select a random patch. This causes the libzypp updates to happen and the yast2 restart. Then I have to do another two iterations ... it's better than five though!
autoinstall@lists.opensuse.org