From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: bug#28772: guix system reconfigure after kernel panic user or group not created Date: Thu, 12 Oct 2017 11:15:48 +0300 Message-ID: <87o9pceq8b.fsf@gmail.com> References: <8760bnh7os.fsf@gmail.com> <87d15vm2t8.fsf@gnu.org> <87r2u9fvpz.fsf@gmail.com> <871sm8ssru.fsf@gnu.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]:53581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Yf2-000619-7G for bug-guix@gnu.org; Thu, 12 Oct 2017 04:16:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2Yew-0003IZ-Ij for bug-guix@gnu.org; Thu, 12 Oct 2017 04:16:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54386) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2Yew-0003IK-EC for bug-guix@gnu.org; Thu, 12 Oct 2017 04:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2Yew-0005qf-4M for bug-guix@gnu.org; Thu, 12 Oct 2017 04:16:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <871sm8ssru.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 12 Oct 2017 09:57:09 +0200") 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 28772@debbugs.gnu.org Hello Ludovic, ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] > I think we can avoid the problem by forcefully removing these two lock > files at boot time: > > diff --git a/gnu/services.scm b/gnu/services.scm > index 329b7b151..2ef1d8530 100644 > --- a/gnu/services.scm > +++ b/gnu/services.scm > @@ -368,6 +368,8 @@ boot." > #t)))) > ;; Ignore I/O errors so the system can boot. > (fail-safe > + (delete-file "/etc/group.lock") > + (delete-file "/etc/passwd.lock") > (delete-file-recursively "/tmp") > (delete-file-recursively "/var/run") > (mkdir "/tmp") > > There is also a '/etc/.pwd.lock'. Info about this file https://lists.debian.org/debian-user/2005/07/msg02949.html I'm not sure if any files are exist. Days past after reconfigure failure. $ sudo find /etc -name '*.lock' # Shows nothing. [...] > IOW, shepherd caught the exceptions and didn=E2=80=99t die. > > What am I missing? I'll try to make a reproducible thing later. Thanks, Oleg.