diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 9f2bedc9f..e3e96804b 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -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