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
This commit is contained in:
jbjohnso 2011-09-26 15:12:11 +00:00
parent 11abff9b71
commit 54ea79fc01
2 changed files with 7 additions and 1 deletions

View File

@ -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!<device>XCATPARTITIONHOOK</device>!<device>/dev/sda</device><partitions config:type="list"><partition><filesystem config:type="symbol">vfat</filesystem><mount>/boot/efi</mount><size>128mb</size></partition><partition><mount>swap</mount><size>auto</size></partition><partition><mount>/</mount><size>auto</size></partition></partitions>!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
else
sed -e 's!<device>XCATPARTITIONHOOK</device>!<device>/dev/sda</device>!'
fi
]]>
</source>

View File

@ -31,7 +31,7 @@
</general>
<partitioning config:type="list">
<drive>
<device>/dev/sda</device>
<device>XCATPARTITIONHOOK</device>
<initialize config:type="boolean">true</initialize>
<use>all</use>
</drive>