unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Vagrant Cascadian <vagrant@debian.org>
To: Ricardo Wurmus <rekado@elephly.net>, gnuforever <help@tuyizere.org>
Cc: guix-devel@gnu.org
Subject: Re: boot multiple Gnu/Linux Distributions from one USB key
Date: Tue, 12 Mar 2019 11:56:54 -0700	[thread overview]
Message-ID: <87pnqvor9l.fsf@ponder> (raw)
In-Reply-To: <874l88tf91.fsf@elephly.net>

On 2019-03-12, Ricardo Wurmus wrote:
> gnuforever <help@tuyizere.org> writes:
>> For GuixSD, I came up with this configuration:
>> I used label instead of uuid.
>>
>>     ## GUIXSD
>>     menuentry "GUIXSD - Gnu/Linux" {
>>         set isofile="/boot-isos/guixsd-install-0.16.0.x86_64-linux.iso"
>>         loopback loop (hd0,1)$isofile
>>         search --label --set GUIXSD_IMAGE
>>         linux
>> (loop)/gnu/store/0zajbn9q39yva4l0zzrcshlll8qikzba-linux-libre-4.19.6/bzImage9
>> --root=GUIXSD_IMAGE
>> --system=(loop)/gnu/store/l4hgd4l7acrqwi3imav9akcvv4sbj85j-system
>> --load=(loop)/gnu/store/l4hgd4l7acrqwi3imav9akcvv4sbj85j-system/boot
>>         initrd
>> (loop)/gnu/store/9nqaksx40zh5d6cg5rim3f3spy56bfb9-raw-initrd/initrd.cpio.gz
>>     }
>>
>> It doesn't work. I get the following error message:
>>
>> waiting for partition 'GUIXSD_IMAGE' to appear...
>
> Does a partition with this label exist?

From the Guix initramfs you would need to run:

  losetup /path/to/file

If the image was in a partitioned loopback file:

  losetup --partscan /path/to/file

Then I suspect the labels would get populated. You may also need to add
losetup to the initramfs, since it probably isn't yet present.

I'm guessing you would also remove the (loop) from these arguments,
which are passed to the Guix initramfs, not loaded from grub:

  --system=/gnu/store...-system
  --load=/gnu/store...-boot


live well,
  vagrant

  reply	other threads:[~2019-03-12 19:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 21:00 boot multiple Gnu/Linux Distributions from one USB key gnuforever
2019-03-12 10:34 ` Tobias Geerinckx-Rice
2019-03-12 13:05 ` Ricardo Wurmus
2019-03-12 18:56   ` Vagrant Cascadian [this message]
2019-03-13  5:24     ` gnuforever
2019-03-23 16:57     ` Tobias Geerinckx-Rice

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=87pnqvor9l.fsf@ponder \
    --to=vagrant@debian.org \
    --cc=guix-devel@gnu.org \
    --cc=help@tuyizere.org \
    --cc=rekado@elephly.net \
    /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).