From 54ea79fc01b319612ed325fb2b350c5a3199d2f3 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 26 Sep 2011 15:12:11 +0000 Subject: [PATCH] Add UEFI autopartitioning to SLES11 compute template git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10635 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/install/scripts/pre.sles | 6 ++++++ xCAT-server/share/xcat/install/sles/compute.sles11.tmpl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/pre.sles b/xCAT-server/share/xcat/install/scripts/pre.sles index b2809a8c4..6936909a6 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.sles +++ b/xCAT-server/share/xcat/install/scripts/pre.sles @@ -91,6 +91,12 @@ chmod 755 /tmp/bar.awk /tmp/bar.awk & /tmp/foo.awk >/tmp/foo.log 2>&1 & + +if [ -d /sys/firmware/efi ]; then + sed -e 's!XCATPARTITIONHOOK!/dev/sdavfat/boot/efi128mbswapauto/auto!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml +else + sed -e 's!XCATPARTITIONHOOK!/dev/sda!' +fi ]]> diff --git a/xCAT-server/share/xcat/install/sles/compute.sles11.tmpl b/xCAT-server/share/xcat/install/sles/compute.sles11.tmpl index ec0b2d54e..dce9d6d12 100644 --- a/xCAT-server/share/xcat/install/sles/compute.sles11.tmpl +++ b/xCAT-server/share/xcat/install/sles/compute.sles11.tmpl @@ -31,7 +31,7 @@ - /dev/sda + XCATPARTITIONHOOK true all