Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Implement resolvconf solution in /etc/grml/fai/grml/grml_cleanup_chroot
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Prokop committed Sep 17, 2007
1 parent d53c978 commit 1d1565d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion etc/grml/fai/grml/grml_cleanup_chroot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1d1565d

Please sign in to comment.