fix 4344 kit repo lose mount after xcat MN reboot in ubuntu

This commit is contained in:
baiyuan 2014-10-30 08:36:47 -04:00
parent aa0f63c2b7
commit 9539644ca1

View File

@ -586,10 +586,10 @@ sub assign_to_osimage
{
unless ( -d "$otherpkgdir/$kitcomptable->{kitreponame}" )
{
system("mkdir -p $otherpkgdir/$kitcomptable->{kitreponame}");
print "mkdir -p $otherpkgdir/$kitcomptable->{kitreponame}";
system("mount -o ro --bind $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame}");
print "mount --bind $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame}";
# system("mkdir -p $otherpkgdir/$kitcomptable->{kitreponame}");
# print "mkdir -p $otherpkgdir/$kitcomptable->{kitreponame}";
system("cp -Rf $kitrepodir $otherpkgdir/");
print "cp -Rf $kitrepodir $otherpkgdir/";
}
}
else