add case from 2.9 to 2.8 branch
This commit is contained in:
parent
28ef6ce19e
commit
04cc48fdb0
@ -0,0 +1,55 @@
|
||||
start:Linux_diskless_installation_flat_x86_64_sles
|
||||
os:Linux
|
||||
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: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: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
|
||||
cmd:rm -rf /install/netboot/__GETNODEATTR($$CN,os)__/x86_64/compute
|
||||
check:rc==0
|
||||
cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute
|
||||
check:rc==0
|
||||
cmd:packimage -o __GETNODEATTR($$CN,os)__ -p compute -a __GETNODEATTR($$CN,arch)__
|
||||
check:rc==0
|
||||
cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute
|
||||
check:rc==0
|
||||
cmd:rsetboot $$CN net
|
||||
check:rc==0
|
||||
cmd:rpower $$CN reset
|
||||
check:rc==0
|
||||
cmd:sleep 200
|
||||
cmd:lsdef -l $$CN | grep status
|
||||
check:output=~booted
|
||||
cmd:xdsh $$CN date
|
||||
check:rc==0
|
||||
check:output=~\d\d:\d\d:\d\d
|
||||
cmd:nodeset $$CN osimage
|
||||
check:rc==0
|
||||
cmd:rsetboot $$CN net
|
||||
check:rc==0
|
||||
cmd:rpower $$CN reset
|
||||
check:rc==0
|
||||
cmd:sleep 200
|
||||
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
|
Loading…
Reference in New Issue
Block a user