X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot;h=12bd0ae6be5f49b4de2678f8336784734789be4e;hb=cc7fe6db61f5722ab66ba37621304b9d16519a35;hp=6d75ea1c2e93e7ead66cc7cf709af3a3fbe0752a;hpb=5cfb285d874809cedd269231b571704a9b6602b7;p=grml-live.git diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index 6d75ea1..12bd0ae 100755 --- a/etc/grml/fai/grml/grml_cleanup_chroot +++ b/etc/grml/fai/grml/grml_cleanup_chroot @@ -4,7 +4,7 @@ # Authors: (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Wed Sep 19 13:38:45 CEST 2007 [mika] +# Latest change: Sun Nov 04 12:12:57 CET 2007 [mika] ################################################################################ # misc stuff @@ -52,6 +52,10 @@ einfo "Setting up /etc/inittab" cp /etc/inittab.grml /etc/inittab eend $? +einfo "Purging removed packages" +dpkg --purge $(dpkg --list | awk '/^rc/ { print $2}') +eend $? + if [ -x /usr/bin/make -a -r /usr/src/Makefile ] ; then einfo "Cleaning up /usr/src/linux-headers-$KERNEL" ( cd /usr/src @@ -74,14 +78,14 @@ elif [ -n "$GRML64" ] ; then if [ -d /usr/src/linux-headers-"$KERNEL" ] ; then einfo "grml64 detected, assuming /usr/src/linux-headers-$KERNEL is ok." ; eend 0 else - ewarn "/usr/src/linux-headers-$KERNEL not found, exiting." ; eend 0 + ewarn "Warning: /usr/src/linux-headers-$KERNEL not found, exiting." ; eend 0 fi elif [ -d /usr/src/linux-headers-"$KERNEL" ] ; then - eerror "/usr/include/linux is NOT a symlink to /usr/src/linux/include/linux/ - error" - eend 1 - exit 10 + ewarn "Warning: /usr/include/linux is NOT a symlink to /usr/src/linux/include/linux/ (possible an error)" + ewarn "Common reason: you forgot to install linux-kernel-headers-grml and use linux-libc-dev instead" + eend 0 else - ewarn "linux-headers-$KERNEL not installed." ; eend 0 + ewarn "Warning: linux-headers-$KERNEL not installed." ; eend 0 fi einfo "Creating ~/.zshrc"