mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	add statelite image definition creation and remove
This commit is contained in:
		| @@ -2,6 +2,8 @@ start:imagexport_imagename_destination | ||||
| os:Linux | ||||
| description:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz | ||||
| cmd:copycds $$ISO | ||||
| cmd:mkdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute -u profile=compute provmethod=statelite osvers=__GETNODEATTR($$CN,os)__ | ||||
| check:rc==0 | ||||
| cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute | ||||
| check:rc==0 | ||||
| cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg | ||||
| @@ -16,12 +18,16 @@ check:output=~Done! | ||||
| cmd:ls foo.tgz | ||||
| check:rc==0 | ||||
| cmd:rm -rf foo.tgz | ||||
| cmd:rmdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute | ||||
| check:rc==0 | ||||
| end | ||||
|  | ||||
| start:imgexport_imagename_destination_p_e | ||||
| os:Linux | ||||
| description:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz -p $$CN -e /install/postscripts/testscript1 | ||||
| cmd:copycds $$ISO | ||||
| cmd:mkdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute -u profile=compute provmethod=statelite osvers=__GETNODEATTR($$CN,os)__ | ||||
| check:rc==0 | ||||
| cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute | ||||
| check:rc==0 | ||||
| cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg | ||||
| @@ -38,6 +44,8 @@ cmd:ls foo.tgz | ||||
| check:rc==0 | ||||
| cmd:rm -rf foo.tgz | ||||
| cmd:rm -rf /install/postscripts/testscript1 | ||||
| cmd:rmdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute | ||||
| check:rc==0 | ||||
| end | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user