[LORAX rhel7/master] Make sure tmpfs is enabled (#908253)

Brian C. Lane bcl at redhat.com
Fri Feb 15 00:56:51 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

NOTE: better solution, but requires systemd to include tmp.mount
---
 share/runtime-postinstall.tmpl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl
index e87a627..1c0f9ba 100644
--- a/share/runtime-postinstall.tmpl
+++ b/share/runtime-postinstall.tmpl
@@ -22,6 +22,10 @@ move etc/yum.repos.d etc/anaconda.repos.d
 remove etc/systemd/system/default.target
 symlink /lib/systemd/system/anaconda.target etc/systemd/system/default.target
 
+## Make sure tmpfs is enabled
+mkdir etc/systemd/system/local-fs.target.wants/
+symlink /lib/systemd/system/tmp.mount etc/systemd/system/local-fs.target.wants/tmp.mount
+
 ## Disable unwanted systemd services
 systemctl disable systemd-readahead-collect.service \
                   systemd-readahead-replay.service \
-- 
1.8.1



More information about the anaconda-patches mailing list