mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-17 20:00:19 +00:00
backup/recover the osimage for node in nodeset_secureroot
This commit is contained in:
@ -479,9 +479,15 @@ os: rhels
|
||||
description: Test nodeset could generate right installation files when site.secureroot=1
|
||||
label: others,security
|
||||
cmd: chdef -t site secureroot=1
|
||||
cmd: nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
|
||||
cmd: myimage=__GETNODEATTR($$CN,provmethod)__; osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute; cn=$$CN
|
||||
test -f /install/autoinst/$cn && mv -f /install/autoinst/$cn /install/autoinst/$cn.secureroot
|
||||
nodeset $cn osimage=$osimage
|
||||
myresult=$?
|
||||
chdef $cn provmethod=$myimage
|
||||
test $myresult -eq 0
|
||||
check:rc==0
|
||||
cmd: cat /install/autoinst/$$CN | grep '^rootpw --iscrypted \*' > /dev/null
|
||||
check:rc==0
|
||||
cmd: chdef -t site secureroot=
|
||||
cmd: test -f /install/autoinst/$$CN.secureroot && mv -f /install/autoinst/$$CN.secureroot /install/autoinst/$$CN
|
||||
end
|
||||
|
Reference in New Issue
Block a user