diff --git a/xCAT-server/share/xcat/install/scripts/pre.sles b/xCAT-server/share/xcat/install/scripts/pre.sles
index 6936909a6..5a39f3424 100644
--- a/xCAT-server/share/xcat/install/scripts/pre.sles
+++ b/xCAT-server/share/xcat/install/scripts/pre.sles
@@ -95,7 +95,7 @@ chmod 755 /tmp/bar.awk
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!'
+ sed -e 's!XCATPARTITIONHOOK!/dev/sda!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
fi
]]>