From 9539644ca195c4897b2892d4b94b9a15a98a5802 Mon Sep 17 00:00:00 2001 From: baiyuan Date: Thu, 30 Oct 2014 08:36:47 -0400 Subject: [PATCH] fix 4344 kit repo lose mount after xcat MN reboot in ubuntu --- xCAT-server/lib/xcat/plugins/kit.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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