[opensuse-autoinstall] Add-on product URI naming scheme
Hi In an attempt to create SLES11SP2/3 installation images, which contain various repositories with some in-house developed RPMs, some questions have popped up from my customer. Although I have searched in the "usual places"++ (admit not being very good at that) I have not been able to find clear answers.
My question is how can I refer to a repository in an autoyast file, when the repository resides in the same medium as the installation files?
In my autoyast file I have <add-on> <add_on_products config:type="list"> <listentry> <media_url>cd:///repos/my_repo1</media_url> <product>my_product1</product> <product_dir>/</product_dir> <name>my_product1</name> </listentry> </add_on_products> </add-on>
Should the media_url be cd:///<path> or can I use file:///<path>? If I use a usb disk instead of a CD, should I change the cd:///<path> to usb:///<path>? Would it be possible to use relurl:///<path>? In that case what is considered the root of the SuSE DVD installation media, the root directory or some other path?
It seems that cd:/// works for installation with a DVD. I didn't find this in the documentation and I don't know if file:/// is supposed to work or not.
I once had a case about location of the info file for linuxrc (where one could refer to info=disk:/info?device=*usb*), but I am not sure this applies to AutoYaST. Also the paths available during installation are not clear to me. Is anybody willing to elaborate or point to sources that document the naming schemes and paths. Thank you. Best regards Andreas -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi, On Thu, Aug 29, Andreas Taschner wrote:
Hi
In an attempt to create SLES11SP2/3 installation images, which contain various repositories with some in-house developed RPMs, some questions have popped up from my customer.
Although I have searched in the "usual places"++ (admit not being very good at that) I have not been able to find clear answers.
My question is how can I refer to a repository in an autoyast file, when the repository resides in the same medium as the installation files?
In my autoyast file I have <add-on> <add_on_products config:type="list"> <listentry> <media_url>cd:///repos/my_repo1</media_url> <product>my_product1</product> <product_dir>/</product_dir> <name>my_product1</name> </listentry> </add_on_products> </add-on>
Should the media_url be cd:///<path> or can I use file:///<path>? If I use a usb disk instead of a CD, should I change the cd:///<path> to usb:///<path>? Would it be possible to use relurl:///<path>? In that case what is considered the root of the SuSE DVD installation media, the root directory or some other path?
It seems that cd:/// works for installation with a DVD. I didn't find this in the documentation and I don't know if file:/// is supposed to work or not.
I once had a case about location of the info file for linuxrc (where one could refer to info=disk:/info?device=*usb*), but I am not sure this applies to AutoYaST. Also the paths available during installation are not clear to me.
Is anybody willing to elaborate or point to sources that document the naming schemes and paths.
Unfortunately all the mentioned urls are handled at completely different places (linuxrc, autoyast, zypper). For autoyast xml control file you can use something like "autoyast=device:/autoinst.xml" or "usb:/autoinst.xml" which will search on all disk or usb devices for the mentioned path. The methods to specify the autoyast control file are in Chapter "7.3.1 Command Line Options" of autoyast Documentation ("Table 7.2"). The add-on section of autoyast control file is handled by yast2-add-on and the urls ultimately by zypper. I am adding Ladislav Slezak and Michael Andres as the respective maintainers to CC: if they have a pointer to such a document for the URLs usable by zypper. Tschuess, Thomas Fehr -- Thomas Fehr, SuSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Tel: +49-911-74053-0, Fax: +49-911-74053-482, Email: fehr@suse.de GPG public key available. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Thursday 29 August 2013 11:22:03 Thomas Fehr wrote:
The add-on section of autoyast control file is handled by yast2-add-on and the urls ultimately by zypper. I am adding Ladislav Slezak and Michael Andres as the respective maintainers to CC: if they have a pointer to such a document for the URLs usable by zypper.
`man zypper`; search for 'Supported URI formats:'; should be an up-to-date zypper from SPLE11-SP1, oS-11.2 or newer. AFAIK file:/ is not mentioned, but it's treated like dir:/ Please tell me if the section needs to be impoved. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hi
On 8/29/2013 at 11:22, Thomas Fehr <fehr@suse.de> wrote: Hi,
On Thu, Aug 29, Andreas Taschner wrote:
Hi
In an attempt to create SLES11SP2/3 installation images, which contain various repositories with some in-house developed RPMs, some questions have popped up from my customer.
Although I have searched in the "usual places"++ (admit not being very good at that) I have not been able to find clear answers.
My question is how can I refer to a repository in an autoyast file, when the repository resides in the same medium as the installation files?
In my autoyast file I have <add-on> <add_on_products config:type="list"> <listentry> <media_url>cd:///repos/my_repo1</media_url> <product>my_product1</product> <product_dir>/</product_dir> <name>my_product1</name> </listentry> </add_on_products> </add-on>
Should the media_url be cd:///<path> or can I use file:///<path>? If I use a usb disk instead of a CD, should I change the cd:///<path> to usb:///<path>? Would it be possible to use relurl:///<path>? In that case what is considered the root of the SuSE DVD installation media, the root directory or some other path?
It seems that cd:/// works for installation with a DVD. I didn't find this in the documentation and I don't know if file:/// is supposed to work or not.
I once had a case about location of the info file for linuxrc (where one could refer to info=disk:/info?device=*usb*), but I am not sure this applies to AutoYaST. Also the paths available during installation are not clear to me.
Is anybody willing to elaborate or point to sources that document the naming schemes and paths.
Unfortunately all the mentioned urls are handled at completely different places (linuxrc, autoyast, zypper). For autoyast xml control file you can use something like "autoyast=device:/autoinst.xml" or "usb:/autoinst.xml" which will search on all disk or usb devices for the mentioned path. The methods to specify the autoyast control file are in Chapter "7.3.1 Command Line Options" of autoyast Documentation ("Table 7.2").
The add-on section of autoyast control file is handled by yast2-add-on and the urls ultimately by zypper. I am adding Ladislav Slezak and Michael Andres as the respective maintainers to CC: if they have a pointer to such a document for the URLs usable by zypper.
Thank you both ! Considering the hint to search for 'Supported URI formats:' in man zypper, we now know that zypper does not support USB devices directly. Would it then be possible to use the "hd:/subdir?device=/dev/sda1&filesystem=reiserfs" approach ? E.g. hd:/repository1?device=/dev/sdb1&filesystem=ext3 or am I over-/misinterpreting ? Best regards Andreas -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Dne 29.8.2013 13:59, Andreas Taschner napsal(a): [...]
Would it then be possible to use the "hd:/subdir?device=/dev/sda1&filesystem=reiserfs" approach ? E.g. hd:/repository1?device=/dev/sdb1&filesystem=ext3 or am I over-/misinterpreting ?
Yes, that should work. If you use YaST2 -> Software Repositories -> Add -> USB Mass Storage it will internally use URL like hd:///?device=/dev/<device>&filesystem=auto (The path is "/" in this case therefore triple slash at the beginning.) Ladislav -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Thursday 29 August 2013 13:59:29 Andreas Taschner wrote:
Considering the hint to search for 'Supported URI formats:' in man zypper, we now know that zypper does not support USB devices directly.
Would it then be possible to use the "hd:/subdir?device=/dev/sda1&filesystem=reiserfs" approach ? E.g. hd:/repository1?device=/dev/sdb1&filesystem=ext3 or am I over-/misinterpreting ?
Yes, hd:/ is a generic schema for mountable blockdevices. If it's helpful we could add usb:/ as alias to hd:/ (without actually restricting it to usb devices). -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 8/29/2013 at 17:41, Michael Andres <ma@suse.de> wrote: On Thursday 29 August 2013 13:59:29 Andreas Taschner wrote: Considering the hint to search for 'Supported URI formats:' in man zypper, we now know that zypper does not support USB devices directly.
Would it then be possible to use the "hd:/subdir?device=/dev/sda1&filesystem=reiserfs" approach ? E.g. hd:/repository1?device=/dev/sdb1&filesystem=ext3 or am I over-/misinterpreting ?
Yes, hd:/ is a generic schema for mountable blockdevices. If it's helpful we could add usb:/ as alias to hd:/ (without actually restricting it to usb devices).
Thank you very much, all of you. I think this information should help me get the customer going. //Andreas -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (4)
-
Andreas Taschner
-
Ladislav Slezak
-
Michael Andres
-
Thomas Fehr