From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#26809: 08/09: services: nscd: Create /etc/resolv.conf if it does not exist. Date: Mon, 08 May 2017 16:30:06 +0200 Message-ID: <871srzmnf5.fsf@gnu.org> References: <20170502103303.32490.61398@vcs0.savannah.gnu.org> <20170502103307.0229020DD6@vcs0.savannah.gnu.org> <87wp9tmh7u.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7jgp-0006Ap-N1 for bug-guix@gnu.org; Mon, 08 May 2017 10:31:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7jgl-0000To-MS for bug-guix@gnu.org; Mon, 08 May 2017 10:31:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7jgl-0000TQ-9n for bug-guix@gnu.org; Mon, 08 May 2017 10:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7jgl-0006FV-4f for bug-guix@gnu.org; Mon, 08 May 2017 10:31:03 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87wp9tmh7u.fsf@netris.org> (Mark H. Weaver's message of "Sun, 07 May 2017 00:19:33 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mark H Weaver Cc: 26809-done@debbugs.gnu.org Mark H Weaver skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> civodul pushed a commit to branch master >> in repository guix. >> >> commit 49f9d7f697d19870f01104cdb6a90a32aea87679 >> Author: Ludovic Court=C3=A8s >> Date: Tue May 2 12:21:31 2017 +0200 >> >> services: nscd: Create /etc/resolv.conf if it does not exist. >>=20=20=20=20=20 >> * gnu/services/base.scm (nscd-activation): Create /etc/resolv.conf i= f it >> does not exist yet. > > This commit broke the boot process on my system. The problem is that > I'm using Network Manager, which makes /etc/resolv.conf into a symlink > that points to /var/run/NetworkManager/resolv.conf. Since /var/run is > cleaned during early boot, when this new activation code runs, > /etc/resolv.conf is a broken symlink. > > I guess that 'file-exists?' returns #false for a broken symlink, and the > 'call-with-output-file' tries to open the target of the symlink, which > fails. Indeed. I guess this is fixed by c298fb133acbdc17e05a79c10ab9a9e214368264. Thanks, Ludo=E2=80=99.