mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	xcatchroot needs full path when being called in aixinstall.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7137 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -3051,9 +3051,9 @@ sub mknimimage
 | 
			
		||||
		chomp $rootpw;
 | 
			
		||||
		my $pwcmd;
 | 
			
		||||
		if ($method) {
 | 
			
		||||
			$pwcmd = qq~xcatchroot -i $spot_name "/usr/bin/echo root:$rootpw | /usr/bin/chpasswd -e -c" >/dev/null 2>&1~;
 | 
			
		||||
			$pwcmd = qq~$::XCATROOT/bin/xcatchroot -i $spot_name "/usr/bin/echo root:$rootpw | /usr/bin/chpasswd -e -c" >/dev/null 2>&1~;
 | 
			
		||||
		} else {
 | 
			
		||||
			$pwcmd = qq~xcatchroot -i $spot_name "/usr/bin/echo root:$rootpw | /usr/bin/chpasswd -c" >/dev/null 2>&1~;
 | 
			
		||||
			$pwcmd = qq~$::XCATROOT/bin/xcatchroot -i $spot_name "/usr/bin/echo root:$rootpw | /usr/bin/chpasswd -c" >/dev/null 2>&1~;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		my $out = xCAT::Utils->runcmd("$pwcmd", -1);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user