a4b143
From 2e987a0ac284a1cd1ab4f8e335abcae91c976f15 Mon Sep 17 00:00:00 2001
a4b143
From: Michal Schmidt <mschmidt@redhat.com>
a4b143
Date: Fri, 15 Feb 2013 09:07:57 +0100
a4b143
Subject: [PATCH] RHEL: units: add [Install] section to tmp.mount
a4b143
a4b143
Related: #908253
a4b143
---
a4b143
 units/tmp.mount | 6 ++++++
a4b143
 1 file changed, 6 insertions(+)
a4b143
a4b143
diff --git a/units/tmp.mount b/units/tmp.mount
a4b143
index 99a3ba3..79e1c76 100644
a4b143
--- a/units/tmp.mount
a4b143
+++ b/units/tmp.mount
a4b143
@@ -18,3 +18,9 @@ What=tmpfs
a4b143
 Where=/tmp
a4b143
 Type=tmpfs
a4b143
 Options=mode=1777,strictatime
a4b143
+
a4b143
+# tmp.mount is statically enabled in upstream. In RHEL tmp-on-tmpfs is not used
a4b143
+# by default, but there are cases where it is necessary (anaconda, live images,
a4b143
+# read-only root). Make 'systemctl enable tmp.mount' work:
a4b143
+[Install]
a4b143
+WantedBy=local-fs.target