From 13c93831bf1ce75700c26a749c544be2b60db9ee Mon Sep 17 00:00:00 2001 From: baiyuan Date: Mon, 27 Oct 2014 08:53:44 -0400 Subject: [PATCH] use read only mount for kitcomponent during addkitcomp --- xCAT-server/lib/xcat/plugins/kit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index e4a94a721..4314ca64e 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}"; } }