Server environment variable
Does the Server environment variable point to the control source or the installation source? Thanks Yan
On Wednesday 02 November 2005 12:55, Yan Fitterer wrote:
Does the Server environment variable point to the control source or the installation source?
Sorry, I don't understand the question. Which "Server environment variable" and what do you mean by "the control source"? -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
Does the Server environment variable point to the control source or the installation source?
Sorry, I don't understand the question. Which "Server environment variable" and what do you mean by "the control source"?
Apologies. In the environment the chroot scripts run under, there is a $Server variable that contains an IP address. I'm not sure however if it is the IP address of the autoyast or install server (as specified on the autoyast and install kernel command line) - as in the lab here they're both the same. Sorry I was short on context!
On Wednesday 02 November 2005 15:41, Yan Fitterer wrote:
Apologies. In the environment the chroot scripts run under, there is a $Server variable that contains an IP address. I'm not sure however if it is the IP address of the autoyast or install server (as specified on the autoyast and install kernel command line) - as in the lab here they're both the same.
Hmm. I never tested that but I would bet it's the address of the installation server. Autoyast does not set environment variables (for all I know). -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
Apologies. In the environment the chroot scripts run under, there is a $Server variable that contains an IP address. I'm not sure however if it is the IP address of the autoyast or install server (as specified on the autoyast and install kernel command line) - as in the lab here they're both the same.
Hmm. I never tested that but I would bet it's the address of the installation server. Autoyast does not set environment variables (for all I know).
I have tested this, and it does point to the installation server. I've just noticed that all the variables can be seen during the autoyast install on console 10 (Alt+F10). Useful things there: Textmode Netdevice IP Netmask Gateway Nameserver Server Serverdir LANG VNC UseSSH amongst others. They are all available to chroot scripts. Not sure about postinstall or preinstall scripts though. Yan
Yan Fitterer wrote
I have tested this, and it does point to the installation server.
I've just noticed that all the variables can be seen during the autoyast install on console 10 (Alt+F10).
Useful things there:
Textmode Netdevice IP Netmask Gateway Nameserver Server Serverdir LANG VNC UseSSH
amongst others. They are all available to chroot scripts. Not sure about postinstall or preinstall scripts though.
Additionally, you can find all the variables you've set at the kernel command line. This is very useful in case you need what you call the "control source", i.e., the place where all the profiles, scripts etc. are stored. If you have set sth. like "autoyast=nfs://<server>/<directory>/" in e.g. pxelinux.cfg, you can grab that in the chroot script, too, and mount the control source manually. I used this some time ago when a bug in autoyast tried to mount the control source over the install system when fetching chroot scripts via NFS... cu, Frank -- 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. *
participants (3)
-
Frank Steiner
-
Uwe Gansert
-
Yan Fitterer