2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Merge pull request #7294 from peterwywong/diskless_kdump

Remove added osimage and node attributes at the end of linux_diskless_kdump
This commit is contained in:
besawn 2022-12-05 10:17:00 -05:00 committed by GitHub
commit e08cb9885d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,4 +118,12 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/kdumpdir
cmd:cat /tmp/node.stanza | chdef -z;rm -rf /tmp/node.stanza
cmd:cat /tmp/osimage.stanza | chdef -z;rm -rf /tmp/osimage.stanza
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then mv $rootimgdir.regbak $rootimgdir -f;fi
# Remove crashkernelsize and dump from the osimage definition and enablekdump from the node defintion
cmd:chdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute crashkernelsize=
check:rc==0
cmd:chdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute dump=
check:rc==0
cmd:chdef -t node $$CN -m postscripts=enablekdump
check:rc==0
end