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:
		| @@ -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 | ||||
|     # | ||||
|   | ||||
		Reference in New Issue
	
	Block a user