From 8d62dd63043f55936032878e8a7ea3ce906e26cc Mon Sep 17 00:00:00 2001 From: linggao Date: Tue, 10 May 2011 21:14:25 +0000 Subject: [PATCH] make sure to use the full path for searching the pkg names in genimage git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/imgutils/imgutils.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm index 396f0ad16..094d296a9 100644 --- a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm +++ b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm @@ -8,6 +8,7 @@ use warnings "all"; use File::Basename; use File::Path; +use Cwd qw(realpath); sub get_profile_def_filename { my $osver = shift; @@ -15,6 +16,7 @@ sub get_profile_def_filename { my $arch = shift; my $base=shift; + $base=realpath($base); #get the full path my $ext=shift; my $dotpos;