From 0d849e29567bcac0e391de09f77e45e2a869d4f6 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 25 Jan 2010 09:31:18 +0000 Subject: [PATCH] relative path support for mknimimage git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5030 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index a2aed55a1..455611d89 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -2575,6 +2575,9 @@ sub mk_mksysb } } elsif ($::SYSB) { + if($::SYSB !~ /^\//) { #relative path + $::SYSB = xCAT::Utils->full_path($::SYSB, $::cwd); + } # def res with existing mksysb image my $mkcmd = "/usr/sbin/nim -o define -t mksysb -a server=master -a location=$::SYSB $mksysb_name 2>&1";