mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	fix bug 4455: nodeset return error for ubuntu if no serialport attribute set
This commit is contained in:
		| @@ -185,7 +185,7 @@ echo "$TMP" > /xcatpost/mypostscript | ||||
| export NODE=#TABLE:nodelist:THISNODE:node# | ||||
| export OSVER=#TABLE:nodetype:THISNODE:os# | ||||
| export ARCH=#TABLE:nodetype:THISNODE:arch# | ||||
| export CONSOLEPORT=#TABLE:nodehm:THISNODE:serialport# | ||||
| export CONSOLEPORT=#TABLEBLANKOKAY:nodehm:THISNODE:serialport# | ||||
| #addsiteyum | ||||
| if [[ -r /boot/grub/menu.lst ]]; then | ||||
| sed -i 's/^serial/#serial/' /boot/grub/menu.lst | ||||
| @@ -194,6 +194,9 @@ elif [[ -r /boot/grub/grub.cfg ]] ; then | ||||
| update-grub | ||||
| fi | ||||
| if echo "$ARCH" | grep -i 'ppc64'; then | ||||
|     if [ -z "$CONSOLEPORT" ] ; then | ||||
|         export CONSOLEPORT=0 | ||||
|     fi | ||||
|     CONSOLE="hvc$CONSOLEPORT" | ||||
|     if [[ -r /etc/default/grub ]] ; then | ||||
|         sed -i "s/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"console=$CONSOLE\"/" /etc/default/grub | ||||
|   | ||||
		Reference in New Issue
	
	Block a user