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, 18 Dec 2017 10:54:06 +0100 Message-ID: <877etkwedd.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> 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]:58999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQs8Z-0007Ep-OA for bug-guix@gnu.org; Mon, 18 Dec 2017 04:55:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQs8U-00075G-TC for bug-guix@gnu.org; Mon, 18 Dec 2017 04:55:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59202) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQs8U-000755-P5 for bug-guix@gnu.org; Mon, 18 Dec 2017 04:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eQs8U-0000jc-Ei for bug-guix@gnu.org; Mon, 18 Dec 2017 04:55:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <844859f2-692e-f2b8-a7c4-bd6d72541fae@uni-bremen.de> (Martin Castillo's message of "Sun, 17 Dec 2017 23:23:37 +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, Martin Castillo 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 =E2=80=98grub.cfg=E2=80=99 is a GC root, which prevent= s the background image and other items from being deleted: --8<---------------cut here---------------start------------->8--- $ ls -l /var/guix/gcroots/bootcfg=20 lrwxrwxrwx 1 root root 52 Dec 7 23:21 /var/guix/gcroots/bootcfg -> /gnu/st= ore/2bnr3z8q0rpvdc9zrshhyq4znx7jpzq6-grub.cfg $ guix gc --references /var/guix/gcroots/bootcfg=20 /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=20 $ echo $? 0 --8<---------------cut here---------------end--------------->8--- Could you check if this is the case on your machine? Thanks, Ludo=E2=80=99.