mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #1241 from tingtli/xcatd
add statelite image definition creation and remove in each independent case
This commit is contained in:
commit
cfdd6be3a1
@ -1,6 +1,8 @@
|
||||
start:lslite_i
|
||||
description:lslite -i
|
||||
os:Linux
|
||||
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:chtab litefile.image="ALL" litefile.file="/xcatpost" litefile.options="tmpfs"
|
||||
@ -15,12 +17,16 @@ check:output=~/xcatpost
|
||||
check:output=~/etc/mtab
|
||||
check:output!~Error
|
||||
cmd:chtab -d file="/xcatpost" litefile
|
||||
cmd:rmdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
|
||||
check:rc==0
|
||||
end
|
||||
|
||||
|
||||
start:lslite_noderange
|
||||
description:lslite noderange
|
||||
os:Linux
|
||||
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:chtab litefile.image="ALL" litefile.file="/xcatpost" litefile.options="tmpfs"
|
||||
@ -36,6 +42,8 @@ check:output!~Error
|
||||
cmd:chtab -d file="/xcatpost" litefile
|
||||
cmd:chtab -d node=$$CN statelite
|
||||
cmd:chtab -d priority=2 litetree
|
||||
cmd:rmdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
|
||||
check:rc==0
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user