From: Michael Prokop Date: Wed, 19 Sep 2007 12:09:56 +0000 (+0200) Subject: Add check for make stuff to /etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot X-Git-Tag: 0.0.1~7 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=b139bfc533a62c3d9dd33cf60ca3320ebff73088;hp=aadaee58928e09263952ff90543024c65d426e4f Add check for make stuff to /etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot --- 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