unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Allan Webber <cwebber@dustycloud.org>
To: guix-devel@gnu.org
Subject: Specifying "search --label" instead of "search --file" in grub
Date: Sun, 20 Dec 2015 17:49:03 -0600	[thread overview]
Message-ID: <8760zssmgx.fsf@dustycloud.org> (raw)

Heya all,

Today while installing GuixSD I hit a really painful and hard to track
down bug.  It can happen when you've got multiple Guix installs which
both have the same kernel.

  # Set 'root' to the partition that contains the kernel.
  search --file --set ~a/~a~%

Since this searches across multiple devices for something that matches
that file (probably not the most efficient route if the label is known
anyway?) it can break things if multiple filesystems contain the same
kernel file.

In my case, I had the usb key with the Guix install plugged in, and I
had just installed Guix to disk.  I had seemingly messed up my install,
so my system wasn't booting, but then I discovered I couldn't even boot
to the USB key either.

Well, the USB key had the same kernel as my borked install.... so... I
couldn't boot my system!

After nearly an hour of frustration I hit the revelation that this was
probably the case, hit "e" in the grub menu, switched switch from --file
to --label, and I got things working.

I wonder if this might bite anyone else?  I paniced because I seemed
unable to boot into either and thought I had totally borked my fancy
~new machine.  I'd hate for anyone else to go through the same thing!

 - Chris

             reply	other threads:[~2015-12-20 23:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-20 23:49 Christopher Allan Webber [this message]
2016-01-01 22:12 ` Specifying "search --label" instead of "search --file" in grub Ludovic Courtès
2016-01-01 23:29   ` Ludovic Courtès

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=8760zssmgx.fsf@dustycloud.org \
    --to=cwebber@dustycloud.org \
    --cc=guix-devel@gnu.org \
    /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).