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
This commit is contained in:
ligc 2009-09-03 09:44:43 +00:00
parent 0dc231935e
commit ce84aa1329

View File

@ -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
#