I'm doing a SLES12 Sp1 autoinstall via autoyast.xml file, and need to
prompt for the only thing that's different between the target machines:
the IP address . It seems like this should be easy, just set up the
<general> section with <ask-list> like:
later down in the autoyast.xml file, is the <networking> section, like:
So, I boot from the ISO and launch the install (Linuxrc) with:
<!-- bunch of options removed for clarity -->
<!-- more options removed for clarity -->
and away we go, through the install. I get prompted for IP address, and
specify something like 192.168.1.50. Everything else is specified in the
autoyast.xml file, so there is no further interaction until the install
I log in as root, and run "ip a" to find that the IP address is not
192.168.1.50 as specified, it's something else, because the system is
using DHCP and has gotten whatever the DHCP server handed out. Looking in
YaST confirms that the system is configured to use DHCP.
If I change Linuxrc to prompt for IP address, like:
then I get prompted for DHCP (no), IP address (192.168.1.44/24), router
(192.168.1.1), nameserver (220.127.116.11) and search domain (whatever.com). The
install proceeds, I get prompted for IP address (192.168.1.50), and I end
up with a system configured for static assignment of 192.168.1.44 (what I
It appears, therefor, that the Linuxrc settings are given priority over
whatever AutoYast is doing in its XML file, to the point where the entire
<ask> block for the IP address is superfluous and I may as well just put
the configuration on the Linuxrc command line.
the <keep_install_network> parameter in the autoyast.xml file is supposed
to control this behaviour. I have tried both "true" and "false" here and
both result in exactly the same end configuration. The settings from
Linuxrc win, and autoyast loses.
Is the doc wrong? Or is this a bug in autoyast?
 Yeah, I know, hostname also needs to be different. That works fine
when prompted in the <ask-list> section. So does prompting for the root
password so that it doesn't have to be left sitting in an accessible file.
Knowledge Partner http://forums.microfocus.com
If you find this post helpful, please click on the star below.