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
This commit is contained in:
ligc 2010-01-25 09:31:18 +00:00
parent dbfca3be2a
commit 0d849e2956

View File

@ -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";