diff --git a/xCAT-server/share/xcat/install/scripts/post.rhels8 b/xCAT-server/share/xcat/install/scripts/post.rhels8
index d875efbaa..cdc119e25 100644
--- a/xCAT-server/share/xcat/install/scripts/post.rhels8
+++ b/xCAT-server/share/xcat/install/scripts/post.rhels8
@@ -18,3 +18,6 @@ do
sed -i 's/ONBOOT=no/ONBOOT=yes/' "$i"
fi
done
+
+# Dirty hack for RHEL8 Alpha
+chkconfig network on
diff --git a/xCAT-server/share/xcat/install/scripts/post.xcat.ng b/xCAT-server/share/xcat/install/scripts/post.xcat.ng
index 83deac2fc..07c4e64bd 100644
--- a/xCAT-server/share/xcat/install/scripts/post.xcat.ng
+++ b/xCAT-server/share/xcat/install/scripts/post.xcat.ng
@@ -58,7 +58,7 @@ sleep "$RAND"
if ! type openssl >/dev/null 2>&1
then
msgutil_r "$MASTER_IP" "error" "/usr/bin/openssl does not exist, halt ..." "/var/log/xcat/xcat.log" "$log_label"
- /tmp/updateflag $MASTER $XCATIPORT "installstatus failed"
+ /tmp/updateflag "$MASTER" "$XCATIPORT" "installstatus failed"
sleep infinity
fi
@@ -119,11 +119,11 @@ function download_recursive()
[ "$?" -ne "0" ] && return 1
;;
*)
- curl --retry 20 --max-time 60 "${url}/${f}" -o "${dest_dir}/${f}"
+ curl --fail --retry 20 --max-time 60 "${url}/${f}" -o "${dest_dir}/${f}"
[ "$?" -ne "0" ] && return 1
;;
esac
- done < <(curl --retry 20 --max-time 60 "${url}/" | grep -o '\1' | cut -d '"' -f 2)
+ done < <(curl --fail --retry 20 --max-time 60 "${url}/" | grep -o '\1' | cut -d '"' -f 2)
return 0
}
@@ -143,7 +143,7 @@ export NODE="#TABLE:nodelist:THISNODE:node#"
msgutil_r "$MASTER_IP" "info" "trying to get mypostscript from $MASTER_IP..." "/var/log/xcat/xcat.log" "$log_label"
-curl --retry 20 --max-time 60 "http://$MASTER_IP$TFTPDIR/mypostscripts/mypostscript.$NODE" -o "/xcatpost/mypostscript.$NODE" 2> /tmp/download.log
+curl --fail --retry 20 --max-time 60 "http://$MASTER_IP$TFTPDIR/mypostscripts/mypostscript.$NODE" -o "/xcatpost/mypostscript.$NODE" 2> /tmp/download.log
if [ "$?" = "0" ]
then
case "$XCATDEBUGMODE" in