From 141b7dbca3d335f346827507310f43aa37fced4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Tue, 1 Jun 2010 20:22:10 +0000 Subject: [PATCH] remove tmpfs mounted /tmp --- remove-tmpfs.patch | 7 +++++++ util-vserver.spec | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 remove-tmpfs.patch diff --git a/remove-tmpfs.patch b/remove-tmpfs.patch new file mode 100644 index 0000000..cf98f1a --- /dev/null +++ b/remove-tmpfs.patch @@ -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 diff --git a/util-vserver.spec b/util-vserver.spec index 07478b1..6c2533f 100644 --- a/util-vserver.spec +++ b/util-vserver.spec @@ -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 || : -- 2.43.0