specify partition definition: support script for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
179d0c4cc2
commit
d1effdcabb
@ -158,8 +158,18 @@ if [ -d /sys/firmware/efi ]; then
|
||||
else
|
||||
sed -e 's!<device>XCATPARTITIONHOOK</device>!<device>'$instdisk'</device>!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
|
||||
fi
|
||||
|
||||
#XCA_PARTITION_SCRIPT#
|
||||
#add the following part for replace the partition definition in /tmp/profile/autoinst.xml
|
||||
if [ -r "/tmp/partitionfile" ]; then
|
||||
while read line
|
||||
do
|
||||
con="${con}${line}"
|
||||
done < /tmp/partitionfile
|
||||
con=${con//>\s+</><}
|
||||
con=${con// /xcattempspace}
|
||||
sed -e '/<drive>/{N;N;s!.*!'$con'!}' /tmp/profile/autoinst.xml > /tmp/profile/modified1.xml
|
||||
sed -e 's!xcattempspace! !g' /tmp/profile/modified1.xml > /tmp/profile/modified.xml
|
||||
fi
|
||||
]]>
|
||||
|
||||
</source>
|
||||
|
Loading…
Reference in New Issue
Block a user