Skip to content

Commit

Permalink
Merge pull request #7270 from gurevichmark/more_disk_space_squashfs_test
Browse files Browse the repository at this point in the history
Free up disk space for regression test on SLES
  • Loading branch information
besawn committed Oct 26, 2022
2 parents f27fba5 + a6e08e4 commit e7674d3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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

0 comments on commit e7674d3

Please sign in to comment.