diff --git a/xCAT-server/share/xcat/install/scripts/pre.sle b/xCAT-server/share/xcat/install/scripts/pre.sle
index 712a69ba3..f02c0c6b2 100644
--- a/xCAT-server/share/xcat/install/scripts/pre.sle
+++ b/xCAT-server/share/xcat/install/scripts/pre.sle
@@ -193,7 +193,7 @@ fi
msgutil_r "$MASTER_IP" "info" "Found $instdisk, generate partition file..." "/var/log/xcat/xcat.log" "$log_label"
if [ -d /sys/firmware/efi ]; then
- sed -e 's!XCATPARTITIONHOOK!'$instdisk'vfat/boot/efi128mbswapauto/auto!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
+ sed -e 's!XCATPARTITIONHOOK!'$instdisk'vfat/boot/efi128mbswapauto/max!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
else
sed -e 's!XCATPARTITIONHOOK!'$instdisk'!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
fi