From 056605887b126349d7555732a019e9a0a5284267 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 14 Jul 2010 11:35:11 +0000 Subject: [PATCH] Change the kcmdline for fedora12/13 to support statelite git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6744 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 6859c5e05..56ad42627 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -53,6 +53,7 @@ my %distnames = ( "1269262918.904535" => "rhels5.5", #ppc "1269260915.992102" => "rhels5.5", #i386 "1269263646.691048" => "rhels5.5", #x86_64 + "1277237975.951114" => "rhels6.0", #x86_64 "1194015916.783841" => "fedora8", "1194015385.299901" => "fedora8", "1210112435.291709" => "fedora9", @@ -441,10 +442,10 @@ sub mknetboot } } - # special case for redhat6, - # TODO: fedora 12 and 13 also need it - if ($osver =~ m/rhel6/ || $osver =~ m/rhels6/) { - $kcmdline = "ip=dhcp root=nfs:$nfssrv:$nfsdir/rootimg:ro STATEMNT="; + # special case for redhat6, fedora12/13 + if ($osver =~ m/rhel6/ || $osver =~ m/rhels6/ + || $osver =~ m/fedora12/ || $osver =~ m/fedora13/ ) { + $kcmdline = "root=nfs:$nfssrv:$nfsdir/rootimg:ro STATEMNT="; } else { $kcmdline = "NFSROOT=$nfssrv:$nfsdir STATEMNT="; }