- 'tpl.040.network.sh'
- 'tpl.060.tweak_systemd.sh'
- 'tpl.070.tweak_grub.sh'
- - 'tpl.075.tmp-tmpfs.sh'
+ - 'tpl.074.tmp-tmpfs-el7.sh'
- 'tpl.080.rsyslogd-el7.sh'
- 'tpl.085.disable-ipv6.sh'
- 'tpl.100.clear_repos.sh'
- 'tpl.040.network.sh'
- 'tpl.060.tweak_systemd.sh'
- 'tpl.070.tweak_grub.sh'
- - 'tpl.075.tmp-tmpfs.sh'
+ - 'tpl.074.tmp-tmpfs-el7.sh'
- 'tpl.080.rsyslogd-el7.sh'
- 'tpl.085.disable-ipv6.sh'
- 'tpl.100.clear_repos.sh'
--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+setup_tmp_tmpfs_el7() {
+
+ local fstab="/etc/fstab"
+ if [[ -f "${fstab}" ]] ; then
+
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_setup_tmp_tmpfs[collapsed=true]\r\e[0KSetting up /tmp as a tmpfs via ${fstab} ..."
+ echo
+ echo "${HASH_LINE}"
+ echo
+ log "Setting up /tmp as a tmpfs in '${fstab}' ..."
+
+ echo 'tmpfs /tmp tmpfs nosuid,size=10% 0 0' >>"${fstab}"
+ echo
+ echo "Patched ${fstab}:"
+ echo "---------- snip -----------"
+ cat "${fstab}"
+ echo "---------- snip -----------"
+
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_setup_tmp_tmpfs\r\e[0K"
+ fi
+
+}
+setup_tmp_tmpfs_el7
+
+#end raw
+## vim: ts=4 et list