mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8
This commit is contained in:
		| @@ -133,7 +133,8 @@ sub updateGrubOnNodes { | ||||
| 	my @output = runcmd('which modifygrub'); | ||||
| 	my $modifygrub = $output[0]; | ||||
| 	chomp($modifygrub); | ||||
| 	my $cmd = "xdsh $nr --sudo -e $modifygrub $vtxt $dtxt -w $WAITTIME -p " . $bootparms->{osimageprovmethod} . ' ' . remoteFilename($bootparms->{kernel}) . ' ' . remoteFilename($bootparms->{initrd}) . ' '; | ||||
|         my $euser ="root"; | ||||
| 	my $cmd = "xdsh $nr -l $euser -e $modifygrub $vtxt $dtxt -w $WAITTIME -p " . $bootparms->{osimageprovmethod} . ' ' . remoteFilename($bootparms->{kernel}) . ' ' . remoteFilename($bootparms->{initrd}) . ' '; | ||||
| 	# we need to quote the kernel parms, both here when passing it to xdsh, and on the node | ||||
| 	# when xdsh is passing it to modifygrub. The way to get single quotes inside single quotes | ||||
| 	# is to quote each of the outer single quotes with double quotes. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user