From: BaiYuan <xca...@so...> - 2014-10-27 12:59:33
|
The branch, master has been updated via 13c93831bf1ce75700c26a749c544be2b60db9ee (commit) from 3ec9780b6ece9ce164cf362ca226ba43c6457b11 (commit) ----------------------------------------------------------------------- commit 13c93831bf1ce75700c26a749c544be2b60db9ee Author: baiyuan <by...@cn...> Date: Mon Oct 27 08:53:44 2014 -0400 use read only mount for kitcomponent during addkitcomp ----------------------------------------------------------------------- diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index e4a94a7..4314ca6 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -589,7 +589,7 @@ sub assign_to_osimage { system("mkdir -p $otherpkgdir/$kitcomptable->{kitreponame}"); print "mkdir -p $otherpkgdir/$kitcomptable->{kitreponame}"; - system("mount --bind $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame}"); + system("mount -o ro --bind $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame}"); print "mount --bind $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame}"; } } |