From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: X server crashes during 'guix system reconfigure' on mips64el Date: Sun, 28 Aug 2016 17:07:36 +0200 Message-ID: <87k2f10w5j.fsf@gnu.org> References: <20160821223010.6271.25223@vcs.savannah.gnu.org> <20160821223011.7BBD9220179@vcs.savannah.gnu.org> <87zio5qsmw.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]:48401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1be1gW-0001Gb-OI for guix-devel@gnu.org; Sun, 28 Aug 2016 11:07:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1be1gS-0003nS-Fk for guix-devel@gnu.org; Sun, 28 Aug 2016 11:07:43 -0400 In-Reply-To: <87zio5qsmw.fsf_-_@netris.org> (Mark H. Weaver's message of "Mon, 22 Aug 2016 01:28:39 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mark H Weaver Cc: guix-devel@gnu.org Hi Mark, Mark H Weaver skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> civodul pushed a commit to branch master >> in repository guix. >> >> commit 3cf319a3f8e23831960a0f1320122cc514188a37 >> Author: Ludovic Court=C3=A8s >> Date: Sun Aug 21 19:03:29 2016 +0200 >> >> services: elogind: Provide '%elogind-file-systems' by extension. >>=20=20=20=20=20 >> * gnu/system/file-systems.scm (%base-file-systems): Remove >> %ELOGIND-FILE-SYSTEMS. >> * gnu/services/desktop.scm (elogind-service-type): Extend >> FILE-SYSTEM-SERVICE-TYPE to provide %ELOGIND-FILE-SYSTEMS. > > This commit causes a major problem on my Lemote YeeLoong (mips64el) > machine running GuixSD. I don't know whether it might affect others. Apologies, I didn=E2=80=99t expect this. :-/ > When I run 'guix system reconfigure' to update to a system with this > commit, it unloads the older %elogind-file-system services, which causes > my X server to crash and leave me in text mode with my keyboard in the > wrong mode, so I have to hard reset the machine. > > In addition, the 'guix system reconfigure' gets stuck. (I can see this > because I always run it in a text terminal; I do all my 'root' work > there.) > > I've tried it twice, and transcribed (by hand) the last few lines of the > output from 'guix system reconfigure': > > First time: > > making '/gnu/store/f0z88r...-system' the current system... > guix system: unloading service 'file-system-/sys/fs/cgroup/elogind'... > wlp0s14f5u3: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (R= eason: 3=3DDEAUTH_LEAVING) > > Second time: > > making '/gnu/store/f0z88r...-system' the current system... > guix system: unloading service 'file-system-/run/systemd'... > > I'm not sure if it's relevant, but I don't have 'elogin-service' on my > YeeLoong. I can't run it there because it depends on 'mozjs' which > fails to build on mips64el. The problem here is that stopping a =E2=80=98file-system-xxx=E2=80=99 Sheph= erd service amounts to stopping the =E2=80=98user-processes=E2=80=99=E2=80=94i.e., kill= all the user processes. This can be seen in the service dependency graph: guix system shepherd-graph the-config.scm | dot -Tps > t.ps So =E2=80=98guix system reconfigure=E2=80=99 should detect this case and ke= ep the service up and running instead of stopping it. Namely, =E2=80=98call-with-service-upgrade-info=E2=80=99 in (guix scripts system) s= hould check whether a given Shepherd service has running dependent services. To be continued=E2=80=A6 Thanks for reporting the issue and reverting the faulty commit! Ludo=E2=80=99. PS: On my machine (where elogind runs), Xorg.0.log reads: (II) systemd-logind: logind integration requires -keeptty and -keeptty wa= s not provided, disabling logind integration =E2=80=A6 which suggests we=E2=80=99re doing things wrong here.