[opensuse-autoinstall] Location for image installation with autoyast
This is another test that i'm doing, i'd like to use this feature:
<software>
<image>
on Monday 08 June 2009 Leonardo L. P. da Mata wrote:
This is another test that i'm doing, i'd like to use this feature:
<software> <image>
http://10.10.0.162/image.sh true </image> </software>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://
/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 -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team 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@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
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://
/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
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>
On Wed, Jul 15, 2009 at 12:10 PM, Uwe Gansert
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://
/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://
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>
file:///image.sh true </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@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
I will keep updating the information. Thanks again. -- Leonardo Luiz Padovani da Mata barroca@gmail.com "May the force be with you, always" "Nerd Pride... eu tenho. Voce tem?" -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Leonardo L. P. da Mata wrote
How do i identify what's my dvdrom drive inside these scripts?
There should always be a link /dev/dvd pointing to the real device like /dev/sr0 or /dev/sr1 etc. -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Thursday 16 July 2009 Frank Steiner wrote:
How do i identify what's my dvdrom drive inside these scripts?
There should always be a link /dev/dvd pointing to the real device like /dev/sr0 or /dev/sr1 etc.
that's true for SLES11 AFAIK but not for SLES10 for example. I'm not sure when exactly that changed. If you boot from the CD/DVD, you can get the information from the /etc/install.inf too -- 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@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thu, Jul 16, 2009 at 5:09 AM, Frank
Steiner
Leonardo L. P. da Mata wrote
How do i identify what's my dvdrom drive inside these scripts?
There should always be a link /dev/dvd pointing to the real device like /dev/sr0 or /dev/sr1 etc.
The problem is that if I create an installation source from USB or HardDisk.
-- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
-- Leonardo Luiz Padovani da Mata barroca@gmail.com "May the force be with you, always" "Nerd Pride... eu tenho. Voce tem?" -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Ok, i think i've finally found the problem. It's been a long time, but
i guess it's ok to explain the problem.
So, if i point the image to cd:///image.sh it should look for this
file in the installation cd, but it doesn't .
The problem is that the file include/autoinstall/io.ycp doesn't check
if the cdrom is already mounted, and tries to mount it again, with an
error.
I've changed the file (attached to this email), to do a bind mount and
it worked.
To reproduce the error, try to use cd:///image.sh as a location of
image file instead of file:/// or others.
Thanks.
On Thu, Jul 16, 2009 at 11:27 AM, Leonardo L. P. da Mata
On Thu, Jul 16, 2009 at 5:09 AM, Frank Steiner
wrote: Leonardo L. P. da Mata wrote
How do i identify what's my dvdrom drive inside these scripts?
There should always be a link /dev/dvd pointing to the real device like /dev/sr0 or /dev/sr1 etc.
The problem is that if I create an installation source from USB or HardDisk.
-- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
-- Leonardo Luiz Padovani da Mata barroca@gmail.com
"May the force be with you, always" "Nerd Pride... eu tenho. Voce tem?"
-- Leonardo Luiz Padovani da Mata barroca@gmail.com "May the force be with you, always" "Nerd Pride... eu tenho. Voce tem?"
on Friday 30 October 2009 Leonardo L. P. da Mata wrote:
I've changed the file (attached to this email), to do a bind mount and it worked.
Thanks. since this is still an experimental feature, I appreciate your feedback a lot. Thanks for your patch too. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug listening to: "Church Noir" by Agonoize -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
Frank Steiner
-
Leonardo L. P. da Mata
-
Uwe Gansert