Bug#548877: bootclean.sh: Let user specify exceptions.

2009-09-30 Thread Petter Reinholdtsen
tags 548877 + wontfix
thanks

 I put some not so tmp file to /tmp for a while. Current bootclean
 cleanup all my /tmp on a reboot, intensionally or not.

Put files in /var/tmp/ if you want to them around for a while.  /tmp/
is for temporarely files and one should not expect files to last
forever there, and definitely not across reboots.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#548877: bootclean.sh: Let user specify exceptions.

2009-09-29 Thread Bug Filler
Package: initscripts
Version: 2.87dsf-6
Severity: wishlist

I put some not so tmp file to /tmp for a while. Current bootclean
cleanup all my /tmp on a reboot, intensionally or not.

Attached patch adds a ${BOOT_CLEAN_EXCEPT} to the exception rule so that
I can specify my own exception rules in the /etc/default/rcS file. Like
exclude a path of /tmp/longer.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=zh_CN.GBK (charmap=GBK)
Shell: /bin/sh linked to /bin/bash

Versions of packages initscripts depends on:
ii  coreutils7.5-6   GNU core utilities
ii  debianutils  3.2.1   Miscellaneous utilities specific t
ii  libc62.9-26  GNU C Library: Shared libraries
ii  lsb-base 3.2-23  Linux Standard Base 3.2 init scrip
ii  mount2.16.1-3Tools for mounting and manipulatin
ii  sysv-rc  2.86.ds1-38 System-V-like runlevel change mech
ii  sysvinit-utils   2.87dsf-6   System-V-like utilities

Versions of packages initscripts recommends:
ii  e2fsprogs 1.41.9-1   ext2/ext3/ext4 file system utiliti
ii  psmisc22.8-1 utilities that use the proc file s

initscripts suggests no packages.

-- no debconf information
--- bootclean.sh2009-09-29 18:47:38.0 +0800
+++ /lib/init/bootclean.sh  2009-09-29 18:34:42.0 +0800
@@ -73,7 +73,7 @@
DEXPR=-mtime +$TMPTIME -ctime +$TMPTIME
fi
 
-   EXCEPT='! -name .
+   EXCEPT=${BOOT_CLEAN_EXCEPT} '! -name .
! ( -path ./lost+found -uid 0 )
! ( -path ./quota.user -uid 0 )
! ( -path ./aquota.user -uid 0 )