From b139bfc533a62c3d9dd33cf60ca3320ebff73088 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 19 Sep 2007 14:09:56 +0200 Subject: [PATCH] Add check for make stuff to /etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot --- etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot | 3 +-- etc/grml/fai/grml/grml_cleanup_chroot | 8 +++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index 88fd997..88345d5 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -4,11 +4,10 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Wed Sep 19 13:42:19 CEST 2007 [mika] +# Latest change: Wed Sep 19 13:51:05 CEST 2007 [mika] ################################################################################ set -e -set -u # remove some big directories when using class LATEX_CLEANUP: if ifclass LATEX_CLEANUP ; then diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index e93f175..be7bc6b 100755 --- a/etc/grml/fai/grml/grml_cleanup_chroot +++ b/etc/grml/fai/grml/grml_cleanup_chroot @@ -52,9 +52,11 @@ einfo "Setting up /etc/inittab" cp /etc/inittab.grml /etc/inittab eend $? -einfo "Cleaning up /usr/src/linux-headers-$KERNEL" -( cd /usr/src && make clean && make symlinks ) -eend $? +if [ -x /usr/bin/make -a -r /usr/src/Makefile ] ; then + einfo "Cleaning up /usr/src/linux-headers-$KERNEL" + ( cd /usr/src && make clean && make symlinks ) + eend $? +fi if [ -L /usr/include/linux ] ; then einfo "/usr/include/linux is ok" ; eend 0 -- 2.1.4