From: gnuforever <help@tuyizere.org>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: guix-devel@gnu.org
Subject: Re: boot multiple Gnu/Linux Distributions from one USB key
Date: Wed, 13 Mar 2019 06:24:59 +0100 [thread overview]
Message-ID: <9c807d6d3efa37bbf63cee7dcb4b1355@tuyizere.org> (raw)
In-Reply-To: <87pnqvor9l.fsf@ponder>
On 12.03.2019 11:34, Tobias Geerinckx-Rice wrote:
> You'll also note that Debian-based distributions use a completely
> different magic word:
>
> linux … iso-scan/filename=$isofile …
Indeed. For Trisquel, libreboot, I have this:
## TRISQUEL
menuentry "Trisquel 7.0 - Gnu/Linux" {
set isofile="/boot-isos/trisquel_7.0_amd64.iso"
loopback loop (usb0,msdos1)$isofile
linux (loop)/casper/vmlinuz boot=casper
iso-scan/filename=$isofile noprompt noeject timezone=Europe/Brussels
initrd (loop)/casper/initrd
}
> I wonder if MAPPED-DEVICES could be a solution here, with a bit (heh)
> of extra code…
Unfortunately, I am not a lisp programmer. Not a programmer at all :-)
I do some lisp in my emacs config files but just for emacs
customization.
Code I found from other emacs users or sometimes with the emacs
customization wizard.
> TL;DR: there is no one reliable way, only distro-specific support.
Does this mean that ,for the moment, I can not add Guix to my multiple
boot usb key?
On 12.03.2019 14:05, Ricardo Wurmus wrote:
> Does a partition with this label exist?
Yes, it exists. If I dd the guix install iso into a usb and boot from
it, the /dev/sr0 which is the is it booted from has "GUIXSD_IMAGE" as
label
In fact, the default embeded grub.cfg in the guix iso looks like this,
but it uses uuid
search --fs-uuid --set 1970-01-01-19-16-18-78
linux
/gnu/store/0zajbn9q39yva4l0zzrcshlll8qikzba-linux-libre-4.19.6/bzImage9
--system=/gnu/store/l4hgd4l7acrqwi3imav9akcvv4sbj85j-system
--load=/gnu/store/l4hgd4l7acrqwi3imav9akcvv4sbj85j-system/boot
initrd
/gnu/store/9nqaksx40zh5d6cg5rim3f3spy56bfb9-raw-initrd/initrd.cpio.gz
On 12.03.2019 19:56, Vagrant Cascadian wrote:
> 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
I will give a try.
Happy Gnu!
gnuforever
next prev parent reply other threads:[~2019-03-13 5:28 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
2019-03-13 5:24 ` gnuforever [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9c807d6d3efa37bbf63cee7dcb4b1355@tuyizere.org \
--to=help@tuyizere.org \
--cc=guix-devel@gnu.org \
--cc=vagrant@debian.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.