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UEVORCBpbml0cmQ9c2wxMTEvaW5pdHJkLng4Ni5hdXRvIGF1dG95YXN0PTE5Mi4xNjguMC4xLw0KDQpCdXQgSSB3b3VsZCBsaWtlIHRvIHByb3ZpZGUgdGhlIGluZm9ybWF0aW9uIHZpYSBESENQIHRodXMgZ2l2aW5nIGF1dG95YXN0IHRoZSBpbmZvcm1hdGlvbiBkeW5hbWljYWxseS4gVGh1cyBJIHdvdWxkIGhhdmUgYSBnZW5lcmljIGluc3RhbGxhdGlvbiBlbnZpcm9ubWVudC4NCg0KQW55IGlkZWFzID8NCg0KdGlhDQpIYWpvDQoNCg0KDQoNCi0tDQogSGFucy1Kb2FjaGltIEVobGVycw0KIFVOSVggU3lzdGVtcyBFbmdpbmVlcg0KIEVVTUVUU0FUDQogRXVtZXRzYXQtQWxsZWUgMQ0KIDY0Mjk1LCBEYXJtc3RhZHQsIEdlcm1hbnkNCiBUZWwgOiArNDkgNjE1MSA4MDctNzMwNw0KIG1haWx0bzpoYW5zam9hY2hpbS5laGxlcnNAZXVtZXRzYXQuaW50DQogaHR0cDovL3d3dy5ldW1ldHNhdC5pbnQNCg0K-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.orgFor additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thu, 17 Dec 2009, Hans-Joachim Ehlers wrote:
Currently I have an info-file in the initrd to provide all autoyast information. But this file contains the IP number of the Installation server
Example: cat info.sl111.x86 ... netdevice: eth0 netmask: 255.255.0.0 broadcast: 10.0.255.255 gateway: 10.0.0.1 server: 10.0.0.5 #Autoyast configuration autoyast: http://10.0.0.5/export/suse/sl111/autoinstall/
BTW: Is the server parameter still needed ?
It's the location from where the install environment is loaded. Technically, using the 'install' option instead would be better, though.
But I would like to provide the information via DHCP thus giving autoyast the information dynamically. Thus I would have a generic installation environment.
Any ideas ?
If you can make your data appear in /var/lib/dhcpcd/dhcpcd-eth0.info, you can run a script to extract the data and feed the result to linuxrc. For example, put this into your info file: exec: /myscript info: /tmp/new_data '/myscript' can then create '/tmp/new_data' which adds the required parameters. Steffen -- Das Nichtrauchen entfernt uns von der Zivilisation und setzt den Mann mit seinem Dackel gleich. -- J. C. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thu, 7 Jan 2010, Steffen Winterfeldt wrote:
On Thu, 17 Dec 2009, Hans-Joachim Ehlers wrote:
Currently I have an info-file in the initrd to provide all autoyast information. But this file contains the IP number of the Installation server
Example: cat info.sl111.x86 ... netdevice: eth0 netmask: 255.255.0.0 broadcast: 10.0.255.255 gateway: 10.0.0.1 server: 10.0.0.5 #Autoyast configuration autoyast: http://10.0.0.5/export/suse/sl111/autoinstall/
BTW: Is the server parameter still needed ?
It's the location from where the install environment is loaded. Technically, using the 'install' option instead would be better, though.
Just looked at the source and the 'server' option is unused meanwhile. Steffen -- Das Nichtrauchen entfernt uns von der Zivilisation und setzt den Mann mit seinem Dackel gleich. -- J. C. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
But I would like to provide the information via DHCP thus giving autoyast the information dynamically. Thus I would have a generic installation environment.
Any ideas ?
If you can make your data appear in /var/lib/dhcpcd/dhcpcd-eth0.info, you can run a script to extract the data and feed the result to linuxrc. For example, put this into your info file:
exec: /myscript info: /tmp/new_data
'/myscript' can then create '/tmp/new_data' which adds the required parameters.
The dhcpcd v3 does not support all option as I am being told from the developer. Version v5 will do. Thus I am misusing the option 47 (NETBIOS SCOPE ) which is supported by the v3 of the dhcpcd to pass the node type to the installation system. This way: - The pxe environment does not need any changes. One menu is valid for all installation ( of a certain OS ) like: /tftpboot/pxelinux.cfg/sles11-x86.graphic.auto - The node type is provided by the DHCP configuration. - Simple change Example: client 1 0x00123456789 10.1.2.3 # pc123 { option 12 "pc123" option sa 10.1.2.1 option bf "/tftpboot/pxelinux.0" ---->>>> option 47 "DEV.STD" } - The rules file has to be enhanced Example: <rule> <custom2> <script> ## Software install selection - based on scope with is provided by DHCP eval scope=$( cat /var/lib/dhcpcd/dhcpcd-*info | grep NETBIOSSCOPE | tail -1 | cut -f2 -d"=" | tr [A-Z] [a-z] ) echo -n $scope # Result is like dev.std , dev.enh , .... </script> <match>*</match> <match_type>exact</match_type> </custom2> <result> <profile>classes/@custom2@.autoinst.xml</profile> <continue config:type="boolean">true</continue> </result> </rule> Additional note: A preinstall script will copy the /var/lib/dhcpcd/dhcpcd-*info information to the target system so this information is not lost and can be used from the pre/post autoyast scripts. On the long run I will provide all information via DHCP because the base installation system is then a generic one thus the installation system could be applied everywhere without any changes required. All required information for autoyast will be provided by the DHCP system. thx Hajo -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Hans-Joachim Ehlers
-
Steffen Winterfeldt