mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-27 14:51:10 +00:00
fix 4344 kit repo lose mount after xcat MN reboot in ubuntu
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user