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, 08 Jan 2018 15:34:38 +0100 [thread overview]
Message-ID: <871sj0fmgx.fsf@gnu.org> (raw)
In-Reply-To: <006d1841-686f-340a-539f-174281d55541@uni-bremen.de> (Martin Castillo's message of "Mon, 18 Dec 2017 15:46:06 +0100")
Hi Martin,
Sorry for the delay.
Martin Castillo <castilma@uni-bremen.de> skribis:
> 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.
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 »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!
Looking at guix/scripts/system.scm, ‘install-bootloader’ definitely
installs the ‘bootcfg’ symlink, except if ‘grub-install’ fails—which is
apparently the case in your transcript above.
Why did you write “expected grub error”? A GRUB error is never
something one should expect. :-)
Ludo’.
next prev parent reply other threads:[~2018-01-08 14:35 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
2017-12-18 14:46 ` Martin Castillo
2018-01-08 14:34 ` Ludovic Courtès [this message]
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=871sj0fmgx.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).