From d2475a918de3dcd5c21e7dd005052a464500abe2 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Mon, 25 Apr 2016 04:09:43 -0400 Subject: [PATCH] fix issue [DEV] RHEL 7.2 can't install on ppc64le Non-Virtualized --- xCAT-server/share/xcat/install/scripts/getinstdisk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/getinstdisk b/xCAT-server/share/xcat/install/scripts/getinstdisk index 5520ab43b..6683a1693 100644 --- a/xCAT-server/share/xcat/install/scripts/getinstdisk +++ b/xCAT-server/share/xcat/install/scripts/getinstdisk @@ -97,7 +97,9 @@ if [ -z "$install_disk" ]; then fi # If there is kernel file, add partition's disk into disk_array - for i in $ker_dir/vmlinuz*; do + # It seems the kernel file in ubuntu and sles are named like vmlinux, but in RH it is called vmlinuz + # To check both vmlinux and vmlinuz, use regular expression "vmlinu*" to match them + for i in $ker_dir/vmlinu*; do disk_part=${partition%%[0-9]*} touch "$tmpfile$disk_part" disk_array=$disk_array"$disk_part "