mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Merge pull request #6164 from tingtli/task57
update nfs service to nfs-server service
This commit is contained in:
commit
42d022966d
@ -37,7 +37,7 @@ check:rc==0
|
||||
cmd:if [ ! -d /kdumpdir ]; then mkdir -p /kdumpdir && chmod 777 /kdumpdir; fi
|
||||
cmd:if [ ! -f /etc/exports ] ;then touch /etc/exports;else cp /etc/exports /etc/exports.bak;fi
|
||||
cmd:cat /etc/exports|grep kdumpdir; if [ "$?" -ne "0" ]; then echo "/kdumpdir *(rw,no_root_squash,sync,no_subtree_check)" >> /etc/exports; fi
|
||||
cmd:cd /etc; export exports;cd -;service nfs restart
|
||||
cmd:cd /etc; export exports;cd -;service nfs-server restart
|
||||
cmd:chdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute dump=nfs://$$MN/kdumpdir
|
||||
check:rc==0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user