From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#29662: 'guix gc' as user makes system unbootable Date: Mon, 08 Jan 2018 15:34:38 +0100 Message-ID: <871sj0fmgx.fsf@gnu.org> References: <874lox89g5.fsf@portkomputilo.i-did-not-set--mail-host-address--so-tickle-me> <844859f2-692e-f2b8-a7c4-bd6d72541fae@uni-bremen.de> <877etkwedd.fsf@gnu.org> <878te0t8dc.fsf@gnu.org> <006d1841-686f-340a-539f-174281d55541@uni-bremen.de> 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]:37469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYYW1-0007w5-Tp for bug-guix@gnu.org; Mon, 08 Jan 2018 09:35:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYYVz-0002ln-0h for bug-guix@gnu.org; Mon, 08 Jan 2018 09:35:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59945) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYYVy-0002lI-TV for bug-guix@gnu.org; Mon, 08 Jan 2018 09:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eYYVy-0001Ei-Hb for bug-guix@gnu.org; Mon, 08 Jan 2018 09:35:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <006d1841-686f-340a-539f-174281d55541@uni-bremen.de> (Martin Castillo's message of "Mon, 18 Dec 2017 15:46:06 +0100") 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: Martin Castillo Cc: 29662@debbugs.gnu.org Hi Martin, Sorry for the delay. Martin Castillo skribis: > On 18.12.2017 15:31, Ludovic Court=C3=A8s wrote: >> Under what circumstances did you have a system without >> /var/guix/gcroots/bootcfg? >>=20 > > I cannot tell. I had some fs errors and run e2fsck several times. Maybe > that removed the link? But since then, I had done several reconfigures. > I'd expect those to recreate it again. OK. >>> # guix system switch-generation 14 >>> substitute: updating list of substitutes from >>> 'https://berlin.guixsd.org'... 100.0% >>> substitute: updating list of substitutes from >>> 'https://mirror.hydra.gnu.org'... 100.0% >>> The following derivation will be built: >>> /gnu/store/31bxx2nwp3lxzdkcy8bmybabfl1pi0af-grub.cfg.drv >>> Von Generation =C2=BB10=C2=AB zu =C2=BB14=C2=AB gewechselt >>> $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg >>> ## no-output, grub.cfg has still the same content-> >>> /var/guix/gcroots/bootcfg changed >>> # guix system reconfigure confs/config.scm >>> ## mentions expected grub error >>> $ diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg >>> see diff [2] >>> >>> it does not seem to update /var/guix/gcroots/bootcfg. >>> and bootcfg somehow lists the generation number in the default entry. >>=20 >> Are you saying that =E2=80=98guix system switch-generation=E2=80=99 does= not update the >> target of the /var/guix/gcroots/bootcfg symlink? (From a quick look at >> the code it seems to update it.) > > No, if you read it again, you see that 'switch-generation' updates it > correctly. 'reconfigure' doesn't seem to update it! Looking at guix/scripts/system.scm, =E2=80=98install-bootloader=E2=80=99 de= finitely installs the =E2=80=98bootcfg=E2=80=99 symlink, except if =E2=80=98grub-ins= tall=E2=80=99 fails=E2=80=94which is apparently the case in your transcript above. Why did you write =E2=80=9Cexpected grub error=E2=80=9D? A GRUB error is n= ever something one should expect. :-) Ludo=E2=80=99.