From: Ulrich Dangel Date: Mon, 27 Jun 2011 13:31:32 +0000 (+0200) Subject: Don't remove pid files in $target/var/run as it is deleted afterwards anyway. X-Git-Tag: v0.15.0~24 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=90b73e633aee7157735cc3b8af611ef25c2be41d Don't remove pid files in $target/var/run as it is deleted afterwards anyway. In some Debian suits $target/var/run is not present as /run was introduced. If the specified directory does not exist find will return an error and the script will fail. --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index 5b7c533..c5199aa 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -24,10 +24,6 @@ else echo "Warning: localepurg not installed" fi -# find /var -name \*.pid -echo "Removing pid-files" -find $target/var/run -name \*.pid -exec rm {} \; - echo "Removing /var/lib/apt/lists/*-stuff, dpkg-status-old and pkgcache.bin" rm -f $target/var/lib/apt/lists/*Packages \ $target/var/lib/apt/lists/*Release \