case "$MODE" in
    after-install)
        # Make sure the chroot have a sane resolv.conf for installing
        # extra packages and upgrades.
        if [ -s $ROOT/etc/resolv.conf ] ; then
            echo "info: Non-zero resolv.conf, not replacing."
        else
            echo "info: Missing resolv.conf, replacing."
            cat > $ROOT/etc/resolv.conf <<EOF
search intern
nameserver 10.0.2.2
EOF
            chmod 0644 $ROOT/etc/resolv.conf
        fi
        ;;
esac
