On Fri, Jan 11, 2008 at 12:32:10PM +0100, chrroe@uni.de wrote:
The problem is, that in the first part of the AutoYast installation (when the RPMs are installed) the new machine knows its IP adress but not the Computer Name. Only after the reboot when the second part of the installtion starts, the hostname is set correctly.
I have identified 3 RPMs so far which need the hostname in the first part of the installation (aaa_base, postfix and a custom made one).
I don't know if Uwe or someone else might come back with a more elegant solution (or point out why autoyast isn't doing what it should) but I do know you could fix this with a pre script. You could have a pre script see what hostname is associated with the IP it has (assuming your rDNS updates for your dhcp values too) and create a /tmp/profile/modified.xml with a <hostname> line like you mentioned trying in a test. I'm using this profile re-write ability pretty extensively to configure the networking/hostname on the fly myself. I have placeholders in the profile file like: <comment>ADDON_DEFAULTS</comment> <comment>NIS_DEFAULTS</comment> <comment>NTP_DEFAULTS</comment> <comment>ROOTWORD_DEFAULT</comment> <comment>TZ_DEFAULT</comment> Then I have a pre.sh script that walks the file and functions that replace the above with values read in from a config file. This allows me to use the exact same scripts/profiles at each of our offices with each local admin setting the initial values to suit their needs. My entire networking section looks like: <networking> <comment>NET_DEFAULTS</comment> </networking> And the hostname, IP, etc are all put into place and then autoyast reads in the updated file before starting it's processing. Next I'm going to add in the ability to size swap based on the amount of physical ram with a multiple set by admins when they run the script that sets up the files the installer uses. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com Drew: "Violence doesn't solve anything? World War I. World War II. Star Wars. every Super Bowl. Who says violence doesn't solve anything?!" ==> Drew Cary Show -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org