all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Martin Castillo <castilma@uni-bremen.de>
Cc: 29662@debbugs.gnu.org
Subject: bug#29662: 'guix gc' as user makes system unbootable
Date: Mon, 18 Dec 2017 15:31:59 +0100	[thread overview]
Message-ID: <878te0t8dc.fsf@gnu.org> (raw)
In-Reply-To: <ec9b02d9-1490-05cd-b7a7-57d5a41b6531@uni-bremen.de> (Martin Castillo's message of "Mon, 18 Dec 2017 15:18:20 +0100")

Hi,

Martin Castillo <castilma@uni-bremen.de> skribis:

>> Normally the current ‘grub.cfg’ is a GC root, which prevents the
>> background image and other items from being deleted:
>> 
>> --8<---------------cut here---------------start------------->8---
>> $ ls -l /var/guix/gcroots/bootcfg 
>> lrwxrwxrwx 1 root root 52 Dec  7 23:21 /var/guix/gcroots/bootcfg -> /gnu/store/2bnr3z8q0rpvdc9zrshhyq4znx7jpzq6-grub.cfg
>> $ guix gc --references /var/guix/gcroots/bootcfg 
>> /gnu/store/i3l4cv1mz30l4jafbghmbgmafc0xb38h-grub-image.png
>> /gnu/store/j5x3dfappv9fdp7h46kgm8wxjbcqv5r6-system
>> /gnu/store/qkhhqqkr0lkczwqwbp95gx4s8v0pjj41-raw-initrd
>> /gnu/store/xqfpwxbghvi3h85pfji6kdzw7db2sgxz-grub-2.02
>> /gnu/store/zi4awdcvrlj0fp74yb0y4ngah4qmcri0-linux-libre-4.14.4
>> $ sudo diff /var/guix/gcroots/bootcfg /boot/grub/grub.cfg 
>> $ echo $?
>> 0
>> --8<---------------cut here---------------end--------------->8---

[...]

> Like I said, I cannot reproduce currently. guix gc --list-dead doesn't
> mention grub files anymore.
>
> below you see what I wrote while doing stuff. it starts with a missing
> bootcfg, then doing stuff and at '--- end' I start again with a bootcfg.
>
> --- start missing bootcfg
>
> $ ls /var/guix/gcroots
> auto/  booted-system  current-system  profiles
>
> I don't have bootcfg in there.

Under what circumstances did you have a system without
/var/guix/gcroots/bootcfg?

> # 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.)

Thanks,
Ludo’.

  reply	other threads:[~2017-12-18 14:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-11 17:21 bug#29662: 'guix gc' as user makes system unbootable Quiliro Ordonez Baca
2017-12-11 21:14 ` Ricardo Wurmus
2017-12-11 21:26   ` Quiliro Ordonez Baca
2017-12-11 21:40     ` Ricardo Wurmus
2017-12-11 22:03       ` Quiliro Ordonez Baca
2017-12-20 14:49         ` Ricardo Wurmus
2017-12-21 21:06     ` Quiliro Ordonez Baca
2017-12-17 22:23 ` Martin Castillo
2017-12-18  9:54   ` Ludovic Courtès
2017-12-18 14:18     ` Martin Castillo
2017-12-18 14:31       ` Ludovic Courtès [this message]
2017-12-18 14:46         ` Martin Castillo
2018-01-08 14:34           ` Ludovic Courtès
2018-01-08 18:37             ` Martin Castillo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878te0t8dc.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=29662@debbugs.gnu.org \
    --cc=castilma@uni-bremen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.