From aa22a37e492f9e3f9151e94d521e77a56b1f425b Mon Sep 17 00:00:00 2001 From: mxi1 Date: Tue, 6 Jul 2010 12:55:08 +0000 Subject: [PATCH] the kernel parameters has little modification for redhat 6 because of the dracut. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6651 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 32e2174f4..6859c5e05 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -441,8 +441,13 @@ sub mknetboot } } - $kcmdline = - "NFSROOT=$nfssrv:$nfsdir STATEMNT="; + # 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="; + } else { + $kcmdline = "NFSROOT=$nfssrv:$nfsdir STATEMNT="; + } # add support for subVars in the value of "statemnt" my $statemnt = "";