mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 17:46:38 +00:00
Merge pull request #2960 from bybai/nfs_s
modify rootfstype for nfs-based statelite with SN testcase
This commit is contained in:
commit
c4e371e664
@ -42,6 +42,8 @@ check:rc==0
|
||||
cmd:if cat /etc/*release |grep SUSE >/dev/null;then xdsh $$SN 'service nfsserver restart'; elif cat /etc/*release |grep "Red Hat" >/dev/null;then xdsh $$SN 'service nfs restart'; fi
|
||||
check:rc==0
|
||||
|
||||
cmd:xdsh $$SN 'showmount -e'
|
||||
|
||||
cmd:chtab node=$$CN statelite.statemnt="$$SN:/nodedata"
|
||||
check:rc==0
|
||||
|
||||
@ -58,6 +60,12 @@ check:rc==0
|
||||
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then mv $rootimgdir $rootimgdir.regbak;fi
|
||||
check:rc==0
|
||||
|
||||
cmd:lsdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
|
||||
check:rc==0
|
||||
|
||||
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute rootfstype=nfs
|
||||
check:rc==0
|
||||
|
||||
cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
|
||||
check:rc==0
|
||||
cmd:liteimg __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
|
||||
|
Loading…
x
Reference in New Issue
Block a user