From mboxrd@z Thu Jan 1 00:00:00 1970 From: gnuforever Subject: Re: boot multiple Gnu/Linux Distributions from one USB key Date: Wed, 13 Mar 2019 06:24:59 +0100 Message-ID: <9c807d6d3efa37bbf63cee7dcb4b1355@tuyizere.org> References: <774d552beb6266a199523203e1ce6b8c@tuyizere.org> <874l88tf91.fsf@elephly.net> <87pnqvor9l.fsf@ponder> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3wRE-000735-E1 for guix-devel@gnu.org; Wed, 13 Mar 2019 01:28:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3wO2-00083V-62 for guix-devel@gnu.org; Wed, 13 Mar 2019 01:25:06 -0400 Received: from erza.lautre.net ([80.67.160.89]:47410) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3wO1-0007zp-JI for guix-devel@gnu.org; Wed, 13 Mar 2019 01:25:06 -0400 In-Reply-To: <87pnqvor9l.fsf@ponder> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Vagrant Cascadian Cc: guix-devel@gnu.org On 12.03.2019 11:34, Tobias Geerinckx-Rice wrote: > You'll also note that Debian-based distributions use a completely=20 > different magic word: >=20 > linux =E2=80=A6 iso-scan/filename=3D$isofile =E2=80=A6 Indeed. For Trisquel, libreboot, I have this: ## TRISQUEL menuentry "Trisquel 7.0 - Gnu/Linux" { set isofile=3D"/boot-isos/trisquel_7.0_amd64.iso" loopback loop (usb0,msdos1)$isofile linux (loop)/casper/vmlinuz boot=3Dcasper=20 iso-scan/filename=3D$isofile noprompt noeject timezone=3DEurope/Brussels initrd (loop)/casper/initrd } > I wonder if MAPPED-DEVICES could be a solution here, with a bit (heh)=20 > of extra code=E2=80=A6 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=20 customization. Code I found from other emacs users or sometimes with the emacs=20 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=20 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=20 it, the /dev/sr0 which is the is it booted from has "GUIXSD_IMAGE" as=20 label In fact, the default embeded grub.cfg in the guix iso looks like this,=20 but it uses uuid search --fs-uuid --set 1970-01-01-19-16-18-78 linux=20 /gnu/store/0zajbn9q39yva4l0zzrcshlll8qikzba-linux-libre-4.19.6/bzImage9=20 --system=3D/gnu/store/l4hgd4l7acrqwi3imav9akcvv4sbj85j-system=20 --load=3D/gnu/store/l4hgd4l7acrqwi3imav9akcvv4sbj85j-system/boot initrd=20 /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: >=20 > losetup /path/to/file >=20 > If the image was in a partitioned loopback file: >=20 > losetup --partscan /path/to/file >=20 > 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. >=20 > I'm guessing you would also remove the (loop) from these arguments, > which are passed to the Guix initramfs, not loaded from grub: >=20 > --system=3D/gnu/store...-system > --load=3D/gnu/store...-boot I will give a try. Happy Gnu! gnuforever