use read only mount for kitcomponent during addkitcomp

This commit is contained in:
baiyuan 2014-10-27 08:53:44 -04:00
parent 3ec9780b6e
commit 13c93831bf

View File

@ -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}";
}
}