From ce84aa1329f10a1ef4ce0a096d22f76f4b7fb904 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 3 Sep 2009 09:44:43 +0000 Subject: [PATCH] support absolute path in mknimimage: bug 2780306 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4090 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index b332051ea..85ab1f4fe 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -950,6 +950,30 @@ sub mknimimage $::METHOD = "rte"; } + if ($::opt_l) + { + # This is not a full path + if($::opt_l !~ /^\//) + { + my $abspath = Cwd::abs_path($::opt_l); + if ($abspath) + { + $::opt_l = Cwd::abs_path($::opt_l); + } + } + } + if ($::opt_s) + { + # This is not a full path + if($::opt_s !~ /^\//) + { + my $abspath = Cwd::abs_path($::opt_s); + if ($abspath) + { + $::opt_s = Cwd::abs_path($::opt_s); + } + } + } # # process @ARGV #