Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Improve portability of linux headers cleanup inside grml_cleanup_chroot
authorMichael Prokop
Sat Sep 29 16:56:16 2007 +0200 (14 months ago)
changeset 119acb05abd631c
manifestacb05abd631c
parent 1188acdfa5e93c6
child 120b7576f2d88f0
Improve portability of linux headers cleanup inside grml_cleanup_chroot
debian/changelog
etc/grml/fai/grml/grml_cleanup_chroot
--- a/debian/changelog Sat Sep 29 12:16:02 2007 +0200
+++ b/debian/changelog Sat Sep 29 16:56:16 2007 +0200
@@ -6,8 +6,10 @@ grml-live (0.0.3) unstable; urgency=low
* Make sure $SECONDS is set before outputting the runtime.
* Unify usage of i386_files, place all template files in
directory templates now.
+ * Improve portability of linux headers cleanup inside
+ grml_cleanup_chroot.
- -- Michael Prokop <mika@grml.org> Sat, 29 Sep 2007 11:40:22 +0200
+ -- Michael Prokop <mika@grml.org> Sat, 29 Sep 2007 16:55:47 +0200
grml-live (0.0.2) unstable; urgency=low
--- a/etc/grml/fai/grml/grml_cleanup_chroot Sat Sep 29 12:16:02 2007 +0200
+++ b/etc/grml/fai/grml/grml_cleanup_chroot Sat Sep 29 16:56:16 2007 +0200
@@ -54,7 +54,17 @@ 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 )
+ ( cd /usr/src
+ VER=$(/bin/ls -d /usr/src/linux-headers-* | head -1)
+ VER=${VER##/usr/src/linux-headers-}
+ if [ -n "$VER" ] ; then
+ VER=$VER make clean && \
+ VER=$VER make symlinks
+ else
+ make clean && \
+ make symlinks
+ fi
+ )
eend $?
fi