From 04e63c307ebf85f1ab679107e9d993aedd4ef4ba Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 7 Mar 2013 20:59:34 +0000 Subject: [PATCH] Create otherpkgdir if it doesn't exist on management node or service node git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15415 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kit.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 0b44df680..30a559582 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -480,6 +480,11 @@ sub assign_to_osimage my $otherpkgdir = $linuximagetable->{otherpkgdir}; my $kitrepodir = $kitrepotable->{kitrepodir}; + # Create otherpkgdir if it doesn't exist + unless ( -d "$otherpkgdir" ) { + mkpath("$otherpkgdir"); + } + # Create symlink if doesn't exist unless ( -d "$otherpkgdir/$kitcomptable->{kitreponame}" ) { system("ln -sf $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame} ");