2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

more_diskspace3

This commit is contained in:
Mark Gurevich 2022-11-07 14:32:31 -05:00
parent d58445a685
commit 89d36b9b94
2 changed files with 4 additions and 8 deletions

View File

@ -139,8 +139,8 @@ 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
#On SLES remove rh dependency dirs to free up disk space
cmd:if [[ "$$OS" =~ "sle" ]]; then rm -rf /xcat-dep/rh*; 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
@ -217,6 +217,4 @@ cmd:if [[ -f /test.synclist.bak ]] ;then mv -f /test.synclist.bak /test.synclist
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

View File

@ -24,8 +24,8 @@ 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
#On SLES remove rh dependency dirs to free up disk space
cmd:if [[ "$$OS" =~ "sle" ]]; then rm -rf /xcat-dep/rh*; fi
cmd:if cat /etc/*release |grep SUSE >/dev/null; then cp /opt/xcat/share/xcat/tools/autotest/testcase/installation/litefile_sles.csv /tmp/litefile.csv;tabrestore /tmp/litefile.csv; elif cat /etc/*release |grep "Red Hat\|Rocky" >/dev/null; then tabrestore /opt/xcat/share/xcat/tools/autotest/testcase/installation/litefile.csv;fi
check:rc==0
@ -135,6 +135,4 @@ cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconserverc
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
check:rc==0
#Move .iso back
cmd:if [[ "$$OS" =~ "sle" ]]; then mv /home/$$ISO /; fi
end