# Authors: (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Mon Sep 17 16:57:17 CEST 2007 [mika]
+# Latest change: Mon Sep 17 22:14:33 CEST 2007 [mika]
################################################################################
# misc stuff
/etc/lvm/.cache 2>/dev/null
rm -rf /tmp/* /var/tmp/* /var/tmp/.* /var/backups/* /.ssh /root/.ssh /home/*/.ssh \
/home/grml/* /home/grml/.??* /var/lib/texmf/ls-R /var/spool/texmf/ls-R \
- /var/lib/mysql /var/log/lilo_log.* 2>/dev/null
+ /var/lib/mysql /var/log/lilo_log.* /core* 2>/dev/null
nuke /var/log /var/cache
zero /var/local /var/log /var/spool \
/var/lib/games /var/cache/man \
touch /etc/ld.so.nohwcap
fi
+# installation of resolvconf in chroot *with* /proc
+# is different from an installation without /proc,
+# so make sure it is OK in any case; don't use /dev/shm
+if [ -d /etc/resolvconf ] ; then
+ rm -rf /etc/resolvconf/run
+ mkdir /etc/resolvconf/run
+ touch /etc/resolvconf/run/enable-updates
+ mkdir /etc/resolvconf/run/interface
+ cat > /etc/resolvconf/run/resolv.conf << EOF
+# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
+# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
+EOF
+fi
+
if [ -x /usr/bin/updatedb ] ; then
einfo "Updating locate-database"
mount -t proc none /proc