From 4a05b54fec18a572de88ccf028fb1b5a1121ca0c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 10 Jul 2011 15:36:28 +0200 Subject: [PATCH] 98-clean-chroot: check existence of updatedb binary via $ROOTCMD. /usr/bin/updatedb might point to /etc/alternatives/updatedb which points to another updatedb binary. When testing for precense of /usr/bin/updatedb the test might fail because test(1) dereferences symbolic links. So make sure to check existence of updatedb binary inside $target using $ROOTCMD. --- etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index d5fd8e3..4e0013a 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -198,7 +198,7 @@ else EOF fi -if ! [ -x $target/usr/bin/updatedb ] ; then +if ! $ROOTCMD test -x /usr/bin/updatedb ; then echo "Warning: updatedb not installed" else echo "Updating locate-database" -- 2.1.4