Skip to content

Instantly share code, notes, and snippets.

@Nokius
Last active November 18, 2016 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nokius/523ad96d2bb01254c92e7cb466f11666 to your computer and use it in GitHub Desktop.
Save Nokius/523ad96d2bb01254c92e7cb466f11666 to your computer and use it in GitHub Desktop.
[SFOS] scorpion tmp.mount
[Unit]
Description=Droid mount for /tmp
Before=local-fs.target systemd-modules-load.service
[Mount]
What=tmpfs
Where=/tmp
Type=tmpfs
Options=nosuid,mode=0755,uid=0,gid=0
# Options had SELinux context option:
# Default is 90 which makes mount period too long in case of
# errors so drop it down a notch.
TimeoutSec=10
[Install]
WantedBy=local-fs.target
# From ./out/target/product/scorpion/root/init.qcom.rc :
# mount tmpfs tmpfs /tmp nosuid mode=0755,uid=0,gid=0
# 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
Documentation=man:hier(7)
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
DefaultDependencies=no
Conflicts=umount.target
Before=local-fs.target umount.target
[Mount]
What=tmpfs
Where=/tmp
Type=tmpfs
Options=mode=1777,strictatime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment