Mount rockpi /tmp as a tmpfs
That ensures we always can write to it, and it isn't on disk.
Signed-off-by: milind-u <milind.upadhyay@gmail.com>
Change-Id: I80348e24adde06e2c404db3818cc19d7ddd73216
diff --git a/frc971/rockpi/contents/etc/systemd/system/tmp.mount b/frc971/rockpi/contents/etc/systemd/system/tmp.mount
new file mode 100644
index 0000000..517dd49
--- /dev/null
+++ b/frc971/rockpi/contents/etc/systemd/system/tmp.mount
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Temporary Directory /tmp
+Documentation=https://systemd.io/TEMPORARY_DIRECTORIES
+Documentation=man:file-hierarchy(7)
+Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
+ConditionPathIsSymbolicLink=!/tmp
+DefaultDependencies=no
+Conflicts=umount.target
+Before=local-fs.target umount.target
+After=swap.target
+
+[Mount]
+What=tmpfs
+Where=/tmp
+Type=tmpfs
+Options=mode=1777,nosuid,nodev
+
+[Install]
+WantedBy=local-fs.target