From 90b73e633aee7157735cc3b8af611ef25c2be41d Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Mon, 27 Jun 2011 15:31:32 +0200 Subject: [PATCH] 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. --- etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot | 4 ---- 1 file changed, 4 deletions(-) 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 \ -- 2.1.4