X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot;h=a8c2a380ac3a770f753a8586ae444125c85ac4b9;hb=0b374e433885a6aa5a6de09fa2a121e33285aaa5;hp=9b1cb2abeb026923c35a025280aa17381488fd37;hpb=7280b17f3796971162b0da54e0a5d5d43878f394;p=grml-live.git diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index 9b1cb2a..a8c2a38 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: Mon Sep 17 16:57:17 CEST 2007 [mika] +# Latest change: Mon Sep 17 22:14:33 CEST 2007 [mika] ################################################################################ # misc stuff @@ -358,6 +358,20 @@ if ! [ -r /etc/ld.so.nohwcap ] ; then 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