X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot;h=71ad9eaeec8752cd16ac0a75b4e427ac2cc8646f;hp=9b1cb2abeb026923c35a025280aa17381488fd37;hb=1d1565d0e49;hpb=d53c97894a5597a6977a72b8af3cba655f00f866 diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index 9b1cb2a..71ad9ea 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/interfaces + 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