2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Merge pull request #7270 from gurevichmark/more_disk_space_squashfs_test

Free up disk space for regression test on SLES
This commit is contained in:
besawn 2022-10-26 09:20:11 -04:00 committed by GitHub
commit e7674d34fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,6 +139,9 @@ check:rc==0
cmd:copycds $$ISO
check:rc==0
#Move .iso out of the way to free up disk space
cmd:if [[ "$$OS" =~ "sle" ]]; then mv $$ISO /home; fi
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then mv $rootimgdir $rootimgdir.regbak -f;fi
check:rc==0
cmd:if [[ -f /test.synclist ]] ;then mv -f /test.synclist /test.synclist.bak;fi;
@ -213,4 +216,7 @@ cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconserverc
cmd:if [[ -f /test.synclist.bak ]] ;then mv -f /test.synclist.bak /test.synclist;else rm -rf /test.synclist;fi
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute synclists=
check:rc==0
#Move .iso back
cmd:if [[ "$$OS" =~ "sle" ]]; then mv /home/$$ISO /; fi
end