Devuan bug report logs - #495
Package: connman sysvint script disables DNS lookups when resolvconf package installed

Package: connman; Maintainer for connman is (unknown); Source for connman is src:connman.

Reported by: Vernon Van Steenkist <vernonjvs@gmail.com>

Date: Wed, 22 Jul 2020 21:03:01 UTC

Severity: normal

Tags: debian

Forwarded to https://bugs.debian.org/966138

Full log


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

Received: (at submit) by bugs.devuan.org; 22 Jul 2020 21:00:06 +0000
Return-Path: <vernonjvs@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 22 Jul 2020 21:00:06 +0000 (UTC)
Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 4AE02F604E1
	for <submit@bugs.devuan.org>; Wed, 22 Jul 2020 22:51:00 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nLxbSOQy";
	dkim-atps=neutral
Received: by mail-qk1-f175.google.com with SMTP id j187so3351735qke.11
        for <submit@bugs.devuan.org>; Wed, 22 Jul 2020 13:51:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=to:from:subject:message-id:date:user-agent:mime-version
         :content-language;
        bh=dSmrf07Boo9GTFBcBW33TCM3x5FqKynLlALYCQwe6NE=;
        b=nLxbSOQyq3azurwTNe9SiGKyaoZX5oaUU+U4h+NNwkGkBgjDweWwtHOEmdde+KCcjQ
         Yz+Lxw8QOd7RlyD5mYHN94H2BLBrWAePqNursfT+1SRm5yaW6BrCiJ8rLb2voVSK+TyB
         1aUdq5xrTlVKGki1V1G4S3XkF+LJb2g+i9p7pvMzrQSRf3gWd5y6FhbOXWxjvveoTIye
         tBHTpk4dDlVo/4E0mmoFSgJDYPj9GaFtymui5zx36+Kcox0Yfl/SXHzRjLusUYt+jNVu
         EBc25wvW/u455LInB6jlP5Q8uCjpvzqexme/PUtY1fX+EItQheX53twhiLRwC6PUZI9X
         310g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:message-id:date:user-agent
         :mime-version:content-language;
        bh=dSmrf07Boo9GTFBcBW33TCM3x5FqKynLlALYCQwe6NE=;
        b=KiCaXxJ5SDCxE9KIQngP7VOaRmRGJnOGwyRGubBNzGvw+3HGevY78rOdwDh5a7osCl
         LJwjS6eI8+5X/ciXlXnxMm4zWJSZm96QMwjtDS8LJCnO7/9gX/YgkWcadPWius5fPcvw
         ahXWyuAIBQYxMSzkq0tIU73pZJ4g4czQIOegzMwurBUq9ZZI0y9WY7SV7QY/sLeCB5HV
         FCCfQ+9LIu5dQJLzv/CYNfEbwhrl2zEWSgRk9qsl/AtE+iGvVqDYiIYjRCdN0WSyvAQI
         2yVHrBBXuFtqN7G1jPvHeOLdbNvW2afR+0sBH3agVQW4HI2Ns+XweeISh+76BV/MjBKC
         /a6A==
X-Gm-Message-State: AOAM5318UQTj7UL+qrmmpfrJX3+j1OUGMrxto8bosYpGe0FUc9IrF3ze
	OuTCW6NRsRYw0VTwBYBBe08JZQGqw+Nr0w==
X-Google-Smtp-Source: ABdhPJwRkX+zT+T6TkubX4V9btkw+ZrS+KpSaxD4sTGt0pN358fnyqJC7/+T57JRGmMuSLKvQHM8/w==
X-Received: by 2002:a05:620a:149a:: with SMTP id w26mr1857508qkj.432.1595451058092;
        Wed, 22 Jul 2020 13:50:58 -0700 (PDT)
Received: from [192.168.0.32] (rrcs-72-43-221-6.nys.biz.rr.com. [72.43.221.6])
        by smtp.gmail.com with ESMTPSA id f54sm742384qte.76.2020.07.22.13.50.57
        for <submit@bugs.devuan.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Wed, 22 Jul 2020 13:50:57 -0700 (PDT)
To: submit@bugs.devuan.org
From: Vernon Van Steenkist <vernonjvs@gmail.com>
Subject: Package: connman sysvint script disables DNS lookups when resolvconf
 package installed
Message-ID: <0cc63567-17c4-923f-600d-6276b81c93ed@gmail.com>
Date: Wed, 22 Jul 2020 16:50:56 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------5628E0563F626B0907E7DE59"
Content-Language: en-US
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,
	RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
[Message part 1 (text/plain, inline)]
Package: connman
Version: 1.36-2 i386

Beowulf connman 1.36-2 i386 sysvinit script conflicts with resolvconf 1.79 package leaving the system in a state unable to do DNS lookups.

Problem one:

sed -n "22,25p" /etc/init.d/connman

if [ "CONNMAN_RUNSTATEDIR_RESOLVCONF" != "no" ] ; then
    mkdir -p /run/connman
    ln -sf /run/connman/resolv.conf /etc/
fi

Since string CONNMAN_RUNSTATEDIR_RESOLVCONF will never be equal to string no, the following line will always be executed
ln -sf /run/connman/resolv.conf /etc/


So, I am not what conditional

if [ "CONNMAN_RUNSTATEDIR_RESOLVCONF" != "no" ]

is supposed to accomplish.

Problem Two:

This creates a problem when using the resolvconf package. Package resolvconf links /etc/resolv.conf to
/run/resolvconf/resolv.conf However, after re-boot, /etc/init.d/connman overwrites this link and links
/etc/resolv.conf to /run/connman/resolv.conf
once again leaving the system in a state unable to do DNS look-ups.

I have brute forced a fix by commenting out the line
ln -sf /run/connman/resolv.conf /etc/ in /etc/init.d/connman

sed -n "22,25p" /etc/init.d/connman

if [ "CONNMAN_RUNSTATEDIR_RESOLVCONF" != "no" ] ; then
    mkdir -p /run/connman
#    ln -sf /run/connman/resolv.conf /etc/
fi

and re-linking /etc/resolv.conf to /run/resolvconf/resolv.conf

I am not sure what the correct fix should be.

Please don't hesitate to contact me if you have any questions.

Thanks,
Vernon

[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Apr 26 13:46:54 2024;