2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Merge pull request #2714 from tingtli/copycds

add copycds -p cases, fix #2699
This commit is contained in:
yangsong 2017-03-21 22:23:47 -05:00 committed by GitHub
commit bdaa5cd2c3

View File

@ -168,3 +168,29 @@ check:rc==0
check:output=~~Copying media to /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__
end
start:copycds_p_newdir
os:Linux
cmd:if [ -e /install/newdir ];then mv /install/newdir /install/newdirbak; fi
cmd:copycds $$ISO -p /install/newdir
check:rc==0
check:output=~Copying media to /install/newdir
check:output=~Media copy operation successful
cmd:ls -l /install/newdir/Packages
check:rc==0
cmd:rm -rf /install/newdir
cmd:if [ -e /install/newdirbak ];then mv /install/newdirbak /install/newdir; fi
end
start:copycds_p_noninstalldir
os:Linux
cmd:if [ -e /noninstalldir ];then mv /noninstalldir /noninstaldirbak; fi
cmd:copycds $$ISO -p /noninstalldir
check:rc==0
check:output=~Warning: copycds: the specified path "/noninstalldir" is not a subdirectory under /install
check:output=~Copying media to /noninstalldir
cmd:ls -l /noninstalldir/Packages
check:rc==0
cmd:rm -rf /noninstalldir
cmd:if [ -e /noninstalldirbak ];then mv /noninstalldirbak /noninstalldir; fi
end