From 53012f4e457f266935dd49b0267e112573452b13 Mon Sep 17 00:00:00 2001
From: xq2005 <xq2005@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd>
Date: Thu, 15 Nov 2012 06:02:28 +0000
Subject: [PATCH] support kdump on sles10 on system p

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14332 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
---
 xCAT/postscripts/enablekdump | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/xCAT/postscripts/enablekdump b/xCAT/postscripts/enablekdump
index 9736d7c96..9490df54c 100755
--- a/xCAT/postscripts/enablekdump
+++ b/xCAT/postscripts/enablekdump
@@ -114,8 +114,12 @@ if [ ! -z "$DUMP" ]; then
                 cd /var/tmp/tempinit/
                 /bin/zcat ${KDUMPINIT} | /bin/cpio -id
                 /bin/rm -f ${KDUMPINIT}
-                mkdir -p ./var/lib/dhcpcd/
-                mkdir -p ./lib/udev/devices/
+                /bin/mkdir -p ./var/lib/dhcpcd/
+                /bin/mkdir -p ./lib/udev/devices/
+                if (pmatch $ARCH "ppc*"); then
+                    /bin/mkdir -p ./lib/power6/
+                    /bin/mkdir -p ./lib/power7/
+                fi
                 /bin/cp -r /lib/udev/devices/* ./lib/udev/devices/
                 for file in "/sbin/ifconfig /usr/bin/clear /bin/touch /bin/grep /sbin/dhcpcd /sbin/ip /bin/awk /bin/makedumpfile"
                 do