[opensuse-autoinstall] Copying installation DVD to installed system
Hi In an isolated server scenario (defense solution), servers are installed from DVD with AutoYaST profile and info file on a USB stick and an additional DVD with a patch-set as an add-on product. On a regular basis, a DVD containing a new patch-set is distributed. This all works fine until we (Novell) release a patch that will install packages from the installation repository, which obviously does not exist on these servers. To prevent that problem from ever occurring, I am trying to find a way to copy the whole content of the SLES DVD to a directory on the target system in e.g. a chroot script and then add it as a repository with zypper. I have tried to find the path to the installation medium with "find -t d" in various scripts, also chroot with chrooted=false, but no luck. Does anybody know how to access those files ? Thank you Best regards Andreas -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
... DVD containing a new patch-set is distributed. This all works fine until we (Novell) release a patch that will install packages from the installation repository, which obviously does not exist on these servers. To prevent that problem from ever occurring ...
IMHO the only clean way to solve the problem is to add these packages as well to the patch DVD. Cheers Hajo -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hi Hans-Joachim
On 8/16/2011 at 14:41, Hans-Joachim Ehlers <HansJoachim.Ehlers@eumetsat.int> wrote: ... DVD containing a new patch-set is distributed. This all works fine until we (Novell) release a patch that will install packages from the installation repository, which obviously does not exist on these servers. To prevent that problem from ever occurring ...
IMHO the only clean way to solve the problem is to add these packages as well to the patch DVD.
Thank you for the suggestion. That is actually what we are doing today. But I wanted to eliminate the trivial step of having to add packages in addition to the patches each time we create a new patch DVD. Hacking more around showed that it is possible to mount e.g. /dev/sr0 in a post-script, copy the files to the installed system and unmount it again. However - since the zypper commands have to be done in an init-script - the whole operation can be done there like this : ... <![CDATA[ mkdir /tmp/instdvd if `mount -t iso9660 /dev/sr0 /tmp/instdvd > /dev/null 2>&1`; then mkdir -v /var/instsrc cp -var /tmp/instdvd/* /var/instsrc/ umount /tmp/instdvd rm /tmp/instdvd fi # Remove existing DVD installation source /usr/bin/zypper sd 1 # Add installation source repo on disk /usr/bin/zypper ar -t yast -n "SLES11-SP1 installation source" file:///var/instsrc/ sles-instsrc ]]> ... Obviously, an initial add-on product with just rpm that just does the copying, would be the optimal way - since another add-on product might have caused a media change. But inventing that solution would be an overkill... :) //Andreas -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Andreas Taschner
-
Hans-Joachim Ehlers