remove tmpfs mounted /tmp
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Tue, 1 Jun 2010 20:22:10 +0000 (20:22 +0000)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Tue, 1 Jun 2010 20:22:10 +0000 (20:22 +0000)
remove-tmpfs.patch [new file with mode: 0644]
util-vserver.spec

diff --git a/remove-tmpfs.patch b/remove-tmpfs.patch
new file mode 100644 (file)
index 0000000..cf98f1a
--- /dev/null
@@ -0,0 +1,7 @@
+diff -ur util-vserver-0.30.216-pre2883.orig/distrib/misc/fstab util-vserver-0.30.216-pre2883/distrib/misc/fstab
+--- util-vserver-0.30.216-pre2883.orig/distrib/misc/fstab      2010-03-31 09:54:20.000000000 -0400
++++ util-vserver-0.30.216-pre2883/distrib/misc/fstab   2010-06-01 16:20:06.960012010 -0400
+@@ -1,3 +1,2 @@
+ none  /proc           proc    defaults                0 0
+-none  /tmp            tmpfs   size=16m,mode=1777      0 0
+ none  /dev/pts        devpts  gid=5,mode=620          0 0
index 07478b1..6c2533f 100644 (file)
@@ -38,6 +38,7 @@ URL:          http://savannah.nongnu.org/projects/util-vserver/
 Source0:       http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
 #Source1:      http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
 Patch1:                f12.patch
+Patch2:                remove-tmpfs.patch
 BuildRoot:     %_tmppath/%name-%version-%release-root
 Requires:      init(%name)
 Requires:      %name-core = %version-%release
@@ -196,6 +197,7 @@ Linux-VServer API from Python.
 %prep
 %setup -q -n %name-%fullver
 %patch1 -p0
+%patch2 -p1
 autoreconf -fi
 
 %build
@@ -252,7 +254,7 @@ test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
 %chkconfig --add vprocunhide
 %chkconfig --add util-vserver
 %chkconfig util-vserver on
-
+service util-vserver restart
 
 %preun sysv
 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :