From 5726f098ffe46fcf7a7d98f7f7d2139370ec271e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 24 Feb 2019 16:31:08 +0100 Subject: [PATCH] Prevent dhcp from setting the 'search' thing in /etc/resolv.conf --- stage3/00-install-yunohost/00-run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stage3/00-install-yunohost/00-run.sh b/stage3/00-install-yunohost/00-run.sh index 18a0a12..2c630bc 100755 --- a/stage3/00-install-yunohost/00-run.sh +++ b/stage3/00-install-yunohost/00-run.sh @@ -1,5 +1,13 @@ #!/bin/bash -e +# Prevent dhcp setting the "search" thing in /etc/resolv.conf, leads to many +# weird stuff (e.g. with numericable) where any domain will ping >.> +on_chroot << EOF +echo 'supersede domain-name "";' >> /etc/dhcp/dhclient.conf +echo 'supersede domain-search "";' >> /etc/dhcp/dhclient.conf +echo 'supersede search ""; ' >> /etc/dhcp/dhclient.conf +EOF + # Avahi and mysql/mariadb needs to do some stuff which conflicts with # the "change the root password asap" so we disable it. In fact, now # that YunoHost 3.3 syncs the password with admin password at