Your message dated Thu, 27 Dec 2007 12:32:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#430814: fixed in sysvinit 2.86.ds1-44
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: sysvinit
Version: 2.86.ds1-14.1
Severity: wishlist
Tags: patch
The attached patch arranges that at boot time, if /tmp (or whatever is
mounted there) has less than a certain amount of free space, a tmpfs
will be mounted over the top. This makes some parts of the system
more robust in the face of disk full situations; in Ubuntu we are
deploying this pursuant to our plan
https://wiki.ubuntu.com/BootLoginWithFullFilesystem).
In the patch below:
* The trigger size is 1Mby by default but configurable in
/etc/default/mountoverflowtmp by setting MINTMPKB. Setting
this value to 0 disables the setup.
* The tmpfs is always 1Mby. Alternatively one might take the
view that this size should be configurable or perhaps it should be
the same as the minimum space.
Note that you might want to consider different defaults for Debian
than for Ubuntu.
Ian.
#! /bin/sh /usr/share/dpatch/dpatch-run
## 92_mountoverflowtmp.dpatch by Ian Jackson
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Mount a 1Mby tmpfs on /tmp if /tmp is otherwise less than 1Mby
@DPATCH@
--- ./debian/initscripts/postinst 2007-06-27 11:26:19.000000000 +0100
+++ edit/sysvinit-2.86.ds1/debian/initscripts/postinst 2007-06-27
11:38:05.000000000 +0100
@@ -102,6 +102,7 @@
updatercd checkfs.sh start 30 S .
updatercd mountall.sh start 35 S .
updatercd mountall-bootclean.sh start 36 S .
+updatercd mountoverflowtmp start 37 S . stop 59 0 6 .
updatercd waitnfs.sh start 45 S .
updatercd mountnfs-bootclean.sh start 46 S .
updatercd bootmisc.sh start 80 S .
--- ./debian/initscripts/conffiles 2007-06-27 11:26:19.000000000 +0100
+++ edit/sysvinit-2.86.ds1/debian/initscripts/conffiles 2007-06-27
11:31:27.000000000 +0100
@@ -11,6 +11,7 @@
/etc/init.d/mountall.sh
/etc/init.d/mountall-bootclean.sh
/etc/init.d/mountnfs-bootclean.sh
+/etc/init.d/mountoverflowtmp
/etc/init.d/mountdevsubfs.sh
/etc/init.d/mountkernfs.sh
/etc/init.d/mtab.sh
--- ./debian/initscripts/etc/init.d/mountoverflowtmp 1970-01-01
01:00:00.000000000 +0100
+++ edit/sysvinit-2.86.ds1/debian/initscripts/etc/init.d/mountoverflowtmp
2007-06-27 11:29:46.000000000 +0100
@@ -0,0 +1,53 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: mountoverflowtmp
+# Required-Start: mountall-bootclean
+# Required-Stop:
+# Default-Start: S
+# Default-Stop:
+# Short-Description: mount emergency /tmp.
+# Description: Mount a tmpfs on /tmp if there would
+# otherwise be too little space to log in.
+### END INIT INFO
+
+. /lib/lsb/init-functions
+
+set -e
+
+defs=/etc/default/mountoverflowtmp
+test ! -f "$defs" || . "$defs"
+
+: ${MINTMPKB:=1024}
+if test "$MINTMPKB" = "0"; then exit 0; fi
+
+case "$1" in
+ start|"")
+ log_action_begin_msg "Checking minimum space in /tmp"
+ df="`df -kP /tmp`"
+ avail="`printf "%s" "$df" | awk 'NR==2 { print $4 }'`"
+ log_action_end_msg 0
+ if test $avail -lt "$MINTMPKB"; then
+ log_action_begin_msg "Mounting emergency tmpfs on /tmp"
+ mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp
+ log_action_end_msg 0
+ fi
+ ;;
+ restart|reload|force-reload)
+ echo "Error: argument '$1' not supported" >&2
+ exit 3
+ ;;
+ stop)
+ log_action_begin_msg "Unmounting any overflow tmpfs from /tmp"
+ if LANG=C LC_ALL=C mount | \
+ grep '^overflow on /tmp type tmpfs' >/dev/null; then
+ umount overflow
+ fi
+ log_action_end_msg 0
+ ;;
+ *)
+ echo "Usage: mountoverflowtmp [start|stop]" >&2
+ exit 3
+ ;;
+esac
+
+:
--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 2.86.ds1-44
We believe that the bug you reported is fixed in the latest version of
sysvinit, which is due to be installed in the Debian FTP archive:
initscripts_2.86.ds1-44_i386.deb
to pool/main/s/sysvinit/initscripts_2.86.ds1-44_i386.deb
sysv-rc_2.86.ds1-44_all.deb
to pool/main/s/sysvinit/sysv-rc_2.86.ds1-44_all.deb
sysvinit-utils_2.86.ds1-44_i386.deb
to pool/main/s/sysvinit/sysvinit-utils_2.86.ds1-44_i386.deb
sysvinit_2.86.ds1-44.diff.gz
to pool/main/s/sysvinit/sysvinit_2.86.ds1-44.diff.gz
sysvinit_2.86.ds1-44.dsc
to pool/main/s/sysvinit/sysvinit_2.86.ds1-44.dsc
sysvinit_2.86.ds1-44_i386.deb
to pool/main/s/sysvinit/sysvinit_2.86.ds1-44_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Petter Reinholdtsen <[EMAIL PROTECTED]> (supplier of updated sysvinit package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Thu, 27 Dec 2007 13:19:14 +0100
Source: sysvinit
Binary: sysv-rc sysvinit-utils sysvinit initscripts
Architecture: source i386 all
Version: 2.86.ds1-44
Distribution: experimental
Urgency: low
Maintainer: Debian sysvinit maintainers
<[email protected]>
Changed-By: Petter Reinholdtsen <[EMAIL PROTECTED]>
Description:
initscripts - Scripts for initializing and shutting down the system
sysv-rc - System-V-like runlevel change mechanism
sysvinit - System-V-like init utilities
sysvinit-utils - System-V-like utilities
Closes: 386959 390404 418596 419195 426071 428823 430814 432511 432511 432750
433119 433359 434177
Changes:
sysvinit (2.86.ds1-44) experimental; urgency=low
.
* Add debian/watch file pointing to ftp.cistron.nl.
* Change init.d/mountnfs.sh dependencies to list nfs-common in
should-start (Closes: #433359).
* Change init.d/umountnfs.sh dependencies to list nfs-common in
should-start too.
* Mount a 1 MiB tmpfs on /tmp if /tmp is otherwise less than
1 MiB to make sure one can still log in when /tmp/ is too
full (Closes: #430814). Based on patch from Ian Jackson and Ubuntu.
* Rewrote ifup.d/mountnfs to wait for all 'auto' interfaces to be
initialized before trying to mount network file systems (Closes:
#386959, #390404, #418596, #419195, #426071, #428823, #432511,
#432511, #432750, #433119, #434177). Based on patch from Phil
Snowdon.
Files:
e2427315d3c2efcbbcff318cc9cb1716 1037 admin required sysvinit_2.86.ds1-44.dsc
62c4c173dba0e3a9d4679ec86c364d92 144820 admin required
sysvinit_2.86.ds1-44.diff.gz
36a42974875c5d04b24f9e0510bae932 107906 admin required
sysvinit_2.86.ds1-44_i386.deb
b9198123dc2c8caa9df091171dbc4f80 66866 admin required
sysvinit-utils_2.86.ds1-44_i386.deb
9a27afd93150bb0eab688dce5ecbb7d4 63724 admin required
initscripts_2.86.ds1-44_i386.deb
017945c0303a190bf91c9832d236511a 58330 admin required
sysv-rc_2.86.ds1-44_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHc5jv20zMSyow1ykRAuDcAJ9Km4/oGallF2Yy7xlAqkkJHvDmhACfUCuO
e/KHBh4wLwXx2hjZzkZUBsM=
=LvsZ
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel