From f28e3fa9450e265e38b75b1d08a561fab3760d28 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 7 Dec 2011 07:49:15 +0000 Subject: [PATCH] RHEL6.2 support on system p git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 7432a1388..3277d5ee0 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -60,6 +60,8 @@ my %distnames = ( "1285192093.430930" => "rhels6", #ppc64 "1305068199.328169" => "rhels6.1", #x86_64 "1305067911.467189" => "rhels6.1", #ppc64 + "1321546114.510099" => "rhels6.2", #x86_64 + "1321546739.676170" => "rhels6.2", #ppc64 "1285193176.593806" => "rhelhpc6", "1194015916.783841" => "fedora8", "1194015385.299901" => "fedora8", @@ -1068,8 +1070,10 @@ sub mkinstall ) or ( $arch =~ /ppc/ and -r "$pkgdir/ppc/ppc64/vmlinuz" and $kernpath = "$pkgdir/ppc/ppc64/vmlinuz" - and -r "$pkgdir/ppc/ppc64/ramdisk.image.gz" + and ((-r "$pkgdir/ppc/ppc64/ramdisk.image.gz" and $initrdpath = "$pkgdir/ppc/ppc64/ramdisk.image.gz") + or (-r "$pkgdir/ppc/ppc64/initrd.img" + and $initrdpath = "$pkgdir/ppc/ppc64/initrd.img"))) ) {