%post --interpreter=/usr/bin/bash
### output to console
+mkdir -p "/var/log/anaconda"
clear
-POST_LOG="/var/log/post-install.log"
+POST_LOG="/var/log/anaconda/post-install.log"
exec < /dev/console &> >(tee -a "$POST_LOG")
######################################################################################
echo "Using snippet $get_repos_snippet"
$SNIPPET($get_repos_snippet)
+#set $init_repos_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.200.init-repos.sh"
+echo
+echo "Using snippet $init_repos_snippet"
+$SNIPPET($init_repos_snippet)
+
+
+
+
+
+#set $finish_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.999.finish.sh"
+echo
+echo "Using snippet $finish_snippet"
+$SNIPPET($finish_snippet)
+
%end
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+finish_all() {
+
+ echo
+ echo "${HASH_LINE}"
+ echo
+ log "Finishing post install tasks ..."
+
+ local wait_for=5
+ local i=${wait_for}
+
+ while [[ "${i}" -gt 0 ]] ; do
+ printf "."
+ sleep 1
+ i=$(( $i - 1 ))
+ done
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Done."
+ echo
+}
+
+finish_all
+
+#end raw
+## vim: ts=4 et list