Add systemd with tizen patches
[external/systemd.git] / packaging / add-tmp.mount-as-tmpfs.patch
1 From 8598715564c7c8d7b7ed75e98bd57cc44b16b318 Mon Sep 17 00:00:00 2001
2 From: William Douglas <william.douglas@intel.com>
3 Date: Fri, 20 Apr 2012 14:20:14 -0700
4 Subject: [PATCH 1/3] add tmp.mount to mount /tmp as tmpfs
5
6 ---
7  Makefile.am           |    7 +++++++
8  units/tizen/tmp.mount |   10 ++++++++++
9  2 files changed, 17 insertions(+)
10  create mode 100644 units/tizen/tmp.mount
11
12 diff --git a/Makefile.am b/Makefile.am
13 index 9762da1..d24649e 100644
14 --- a/Makefile.am
15 +++ b/Makefile.am
16 @@ -380,6 +380,11 @@ systemgenerator_PROGRAMS += \
17         systemd-rc-local-generator
18  endif
19  
20 +if TARGET_MEEGO
21 +dist_systemunit_DATA += \
22 +       units/tizen/tmp.mount
23 +endif
24 +
25  if TARGET_MANDRIVA
26  dist_systemunit_DATA += \
27         units/mandriva/prefdm.service \
28 @@ -2433,6 +2438,8 @@ if TARGET_MEEGO
29                 rm -f * )
30         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
31                 rm -f * )
32 +       ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
33 +               $(LN_S) $(systemunitdir)/tmp.mount tmp.mount )
34         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
35                 rm -f * )
36         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
37 diff --git a/units/tizen/tmp.mount b/units/tizen/tmp.mount
38 new file mode 100644
39 index 0000000..7c3e98c
40 --- /dev/null
41 +++ b/units/tizen/tmp.mount
42 @@ -0,0 +1,10 @@
43 +
44 +[Unit]
45 +Description=Runtime Directory
46 +Before=local-fs.target
47 +
48 +[Mount]
49 +What=tmpfs
50 +Where=/tmp
51 +Type=tmpfs
52 +Options=relatime,nodev,nosuid,noexec,size=128M
53 -- 
54 1.7.10
55