-On x86, have a BOOTIF= variable available, and default to using it where possible
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5947 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -837,7 +837,7 @@ sub mkinstall | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 $ksdev = "eth0"; | ||||
|                 $ksdev = "bootif"; #if not specified, fall back to bootif | ||||
|             } | ||||
|             if ($ksdev eq "") | ||||
|             { | ||||
|   | ||||
| @@ -169,6 +169,7 @@ sub setstate { | ||||
|     } else { | ||||
|       print $pcfg "\n"; | ||||
|     } | ||||
|     print $pcfg "  IPAPPEND 2\n"; | ||||
|     } | ||||
|     close($pcfg); | ||||
|     my $inetn = inet_aton($node); | ||||
|   | ||||
| @@ -698,7 +698,7 @@ sub mkinstall | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     $netdev = "eth0"; | ||||
|                     $netdev = "bootif"; | ||||
|                 } | ||||
|                 if ($netdev eq "") #why it is blank, no mac defined? | ||||
|                 { | ||||
| @@ -709,7 +709,9 @@ sub mkinstall | ||||
|                         } | ||||
|                     ); | ||||
|                 } | ||||
|                 $kcmdline .= " netdevice=" . $netdev; | ||||
|                 unless ($netdev eq "bootif") { #if going by bootif, BOOTIF will suffice | ||||
|                     $kcmdline .= " netdevice=" . $netdev; | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             #TODO: driver disk handling should in SLES case be a mod of the install source, nothing to see here | ||||
|   | ||||
| @@ -198,11 +198,14 @@ sub setstate { | ||||
|             } else { | ||||
|               print $pcfg "\n"; | ||||
|             } | ||||
|             print $pcfg "IPAPPEND 2\n"; | ||||
|         } else { #other than comboot/multiboot, we won't have need of pxelinux | ||||
|             print $pcfg "imgfetch -n kernel http://".'${next-server}/tftpboot/'.$kern->{kernel}."\n"; | ||||
|             print $pcfg "imgload kernel\n"; | ||||
|             if ($kern->{kcmdline}) { | ||||
|                 print $pcfg "imgargs kernel ".$kern->{kcmdline}."\n"; | ||||
|                 print $pcfg "imgargs kernel ".$kern->{kcmdline}." BOOTIF=${netX/mac}\n"; | ||||
|             } else { | ||||
|                 print $pcfg "imgargs kernel BOOTIF=${netX/mac}\n"; | ||||
|             } | ||||
|             if ($kern->{initrd}) { | ||||
|                 print $pcfg "imgfetch http://".'${next-server}'."/tftpboot/".$kern->{initrd}."\n"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user