98-clean-chroot: check existence of updatedb binary via $ROOTCMD.
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 98-clean-chroot
index d5fd8e3..4e0013a 100755 (executable)
@@ -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"