unofficial mirror of bug-guix@gnu.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 10:54:06 +0100	[thread overview]
Message-ID: <877etkwedd.fsf@gnu.org> (raw)
In-Reply-To: <844859f2-692e-f2b8-a7c4-bd6d72541fae@uni-bremen.de> (Martin Castillo's message of "Sun, 17 Dec 2017 23:23:37 +0100")

Hi Martin,

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

> I had a similar situation today. guix gc removed the grub background png
> from the store. the one, that was used by /boot/grub/grub.cfg. the boot
> menu then had a black and blue background. rebuilding the configuration
> refetched the background image, but guix gc removed it again.

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---

Could you check if this is the case on your machine?

Thanks,
Ludo’.

  reply	other threads:[~2017-12-18  9:55 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 [this message]
2017-12-18 14:18     ` Martin Castillo
2017-12-18 14:31       ` Ludovic Courtès
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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=877etkwedd.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).