ryantimwilson / rpms / systemd

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