The patch fixed the three issues in SLES11 unattended install. 1) After succsfull install of SLES guest first stage, again install started. Autotest keep installing first stage in a loop. 2) post-scripts executed failed in the initial boot. use init-scripts to replace it. 3) Disabled tunneled clear text passwords in /etc/ssh/sshd_config of Guest OS. Enable it in init-scripts.
Signed-off-by: Jin Bing Guo <[email protected]> --- client/tests/kvm/tests_base.cfg.sample | 2 +- client/tests/kvm/unattended/SLES-11.xml | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index bb3646c..fc36a4d 100644 --- a/client/tests/kvm/tests_base.cfg.sample +++ b/client/tests/kvm/tests_base.cfg.sample @@ -682,7 +682,7 @@ variants: unattended_install: pxe_image = "linux" pxe_initrd = "initrd" - extra_params += " -bootp /pxelinux.0 -boot n" + extra_params += " -bootp /pxelinux.0 -boot cn" kernel_args = "autoyast=floppy" post_install_delay = 10 diff --git a/client/tests/kvm/unattended/SLES-11.xml b/client/tests/kvm/unattended/SLES-11.xml index 93e5685..0bf57fe 100644 --- a/client/tests/kvm/unattended/SLES-11.xml +++ b/client/tests/kvm/unattended/SLES-11.xml @@ -534,26 +534,27 @@ <default>3</default> </runlevel> <scripts> - <post-scripts config:type="list"> + <init-scripts config:type="list"> <script> <debug config:type="boolean">true</debug> - <feedback config:type="boolean">false</feedback> - <filename>server</filename> - <interpreter>python</interpreter> - <location></location> - <network_needed config:type="boolean">true</network_needed> - <source><![CDATA[import socket, os -os.system('dhclient') -os.system('iptables -F') + <filename>config</filename> + <source><![CDATA[dhclient eth0 +chkconfig sshd on +sed -i -e 's/\(PasswordAuthentication\s\)no/\1yes/g' /etc/ssh/sshd_config +cat <<EOF>server +#!/usr/bin/python +import socket, os server=socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind(('',12323)) server.listen(1) (client, addr) = server.accept() client.send("done") client.close() +EOF +python server ]]></source> </script> - </post-scripts> + </init-scripts> </scripts> <software> <packages config:type="list"> --
0001-Fix-sles11-unattended-installs.patch
Description: Binary data
_______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
