From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Castillo Subject: bug#29662: 'guix gc' as user makes system unbootable Date: Mon, 18 Dec 2017 15:46:06 +0100 Message-ID: <006d1841-686f-340a-539f-174281d55541@uni-bremen.de> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQwh9-0007k9-Ns for bug-guix@gnu.org; Mon, 18 Dec 2017 09:47:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQwh4-0006vG-UF for bug-guix@gnu.org; Mon, 18 Dec 2017 09:47:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59443) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQwh4-0006ur-Q2 for bug-guix@gnu.org; Mon, 18 Dec 2017 09:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eQwh4-00012o-Bs for bug-guix@gnu.org; Mon, 18 Dec 2017 09:47:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <878te0t8dc.fsf@gnu.org> Content-Language: en-US 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: 29662@debbugs.gnu.org Hi, On 18.12.2017 15:31, Ludovic Courtès wrote: > Under what circumstances did you have a system without > /var/guix/gcroots/bootcfg? > 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. >> # 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 »10« zu »14« 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. > > Are you saying that ‘guix system switch-generation’ 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! Martin -- GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC