Mailinglist Archive: opensuse-autoinstall (51 mails)

< Previous Next >
Re: [opensuse-autoinstall] Location for image installation with autoyast
  • From: "Leonardo L. P. da Mata" <barroca@xxxxxxxxx>
  • Date: Wed, 15 Jul 2009 13:10:22 -0300
  • Message-id: <7a26565f0907150910l7c04290en42515c2822d2a467@xxxxxxxxxxxxxx>
On Wed, Jul 15, 2009 at 12:10 PM, Uwe Gansert<ug@xxxxxxx> wrote:
on Tuesday 09 June 2009 Uwe Gansert wrote:

But i'd like to store both the script and the image that will be used
in the installation on the media DVD, the script_location tag may have
device://<cdrom_device>/image.sh parameter??

yes, you can use device, like you can use it for the autoyast=....
parameter you can use file:///... too, then autoyast will fall back to the
cdrom drive if it cant find it in the filesystem

just for the archive, I did a test and that worked fine:

I created an ISO (based on a SLES11 but all RPM files deleted) with the
following image files on it:

* image.sh
* image_test.xml
* suse-oem-preload.tar.bz2

and that worked with:
autoyast=file:///image_test.xml

instead of using the file:// parameter, i've used the
device://<dev_name>/ parameter. The machines where the system will be
installed have the same configuration, so there's no concern about
changing the device.

my image.sh script has almost the same configuration.




and an image.sh like this:

mv /mnt/etc/fstab tmp
mkdir /tmp/mnt
mount /dev/sr0 /tmp/mnt
tar xfj /tmp/mnt/suse-oem-preload.tar.bz2 -C /mnt 2>/dev/null
mv /tmp/fstab /mnt/etc
umount /tmp/mnt

the relevant part in the xml file is:

 <software>
     <image>
         <script_location>file:///image.sh</script_location>
         <run_kickoff config:type="boolean">true</run_kickoff>
     </image>
 </software>

that installed a SLES 11 system quite fine here
You should add a working installation source at the end of the installation
via "zypper as" and remove the "broken" on the the CD with "zypper rs"

--
ciao, Uwe Gansert

Uwe Gansert
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Business: http://www.suse.de/~ug

--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx



I will keep updating the information.

Thanks again.

--
Leonardo Luiz Padovani da Mata
barroca@xxxxxxxxx

"May the force be with you, always"
"Nerd Pride... eu tenho. Voce tem?"
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
References