projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add check for make stuff to /etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
[grml-live.git]
/
etc
/
grml
/
fai
/
grml
/
grml_cleanup_chroot
diff --git
a/etc/grml/fai/grml/grml_cleanup_chroot
b/etc/grml/fai/grml/grml_cleanup_chroot
index
e93f175
..
be7bc6b
100755
(executable)
--- 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 $?
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
if [ -L /usr/include/linux ] ; then
einfo "/usr/include/linux is ok" ; eend 0