From 3238ea676069492ff90bd410b54d773572255ed7 Mon Sep 17 00:00:00 2001 From: amy0701 Date: Tue, 4 Sep 2012 02:45:42 +0000 Subject: [PATCH] add diskless installation for sles ppc64 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13710 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../linux_sles_diskless_installation_ppc64 | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 xCAT-test/autotest/testcase/installation/linux_sles_diskless_installation_ppc64 diff --git a/xCAT-test/autotest/testcase/installation/linux_sles_diskless_installation_ppc64 b/xCAT-test/autotest/testcase/installation/linux_sles_diskless_installation_ppc64 new file mode 100644 index 000000000..d01fe7e14 --- /dev/null +++ b/xCAT-test/autotest/testcase/installation/linux_sles_diskless_installation_ppc64 @@ -0,0 +1,46 @@ +start:Linux_sles_diskless_installation_ppc_flat +os:Linux +cmd:rscan __GETNODEATTR($$CN,hcp)__ -w +check:rc==0 +cmd:makedns -n +check:rc==0 +cmd:service named restart +check:rc==0 +cmd:makeconservercf $$CN +check:rc==0 +cmd:cat /etc/conserver.cf | grep $$CN +check:output=~$$CN +cmd:sleep 60 +cmd:getmacs $$CN -f -D +check:rc==0 +cmd:makedhcp -n +check:rc==0 +cmd:makedhcp -a +check:rc==0 +cmd:service dhcpd restart +check:rc==0 +cmd:cat /var/lib/dhcp/db/dhcpd.leases| grep $$CN +check:output=~$$CN +cmd:copycds $$ISO +check:rc==0 +cmd:if [ ! -d /install/custom/netboot/sles ]; then mkdir -p /install/custom/netboot/sles; fi +check:rc==0 +cmd:if [ ! -e /install/custom/netboot/sles/compute.synclist ]; then echo "/etc/resolv.conf -> /etc/resolv.conf" > /install/custom/netboot/sles/compute.synclist; fi +check:rc==0 +cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__ synclists=/install/custom/netboot/sles/compute.synclist +check:rc==0 +cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__ +check:rc==0 +cmd:packimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__ +check:rc==0 +cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-__GETNODEATTR($$CN,provmethod)__-__GETNODEATTR($$CN,profile)__ +check:rc==0 +cmd:rnetboot $$CN +check:rc==0 +cmd:sleep 600 +cmd:lsdef -l $$CN | grep status +check:output=~booted +cmd:xdsh $$CN date +check:rc==0 +check:output=~\d\d:\d\d:\d\d +end