From 88922b24f66973ab5a724ade386da814794e102e Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 3 Aug 2012 01:51:51 +0000 Subject: [PATCH] support fadump on p7 ih cluster git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/rh/genimage | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index cb5fcbc79..f2fd3f369 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -703,7 +703,12 @@ sub mkinitrd_dracut { # update etc/dracut.conf open($DRACUTCONF, '>', "$rootimg_dir/etc/dracut.conf"); - print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules"\n}; + if (-d glob("/usr/share/dracut/modules.d/[0-9]*fadump")){ + print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules fadump"\n}; + } + else{ + print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules"\n}; + } print $DRACUTCONF qq{add_drivers+="$add_drivers"\n}; print $DRACUTCONF qq{filesystems+="nfs"\n}; close $DRACUTCONF; @@ -733,7 +738,12 @@ sub mkinitrd_dracut { # update etc/dracut.conf open($DRACUTCONF, '>', "$rootimg_dir/etc/dracut.conf"); - print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules"\n}; + if (-d glob("/usr/share/dracut/modules.d/[0-9]*fadump")){ + print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules fadump"\n}; + } + else{ + print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules"\n}; + } print $DRACUTCONF qq{add_drivers+="$add_drivers"\n}; close $DRACUTCONF; } else {