From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vagrant Cascadian Subject: Re: boot multiple Gnu/Linux Distributions from one USB key Date: Tue, 12 Mar 2019 11:56:54 -0700 Message-ID: <87pnqvor9l.fsf@ponder> References: <774d552beb6266a199523203e1ce6b8c@tuyizere.org> <874l88tf91.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3mex-0000mP-KH for guix-devel@gnu.org; Tue, 12 Mar 2019 15:01:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3ma9-0001aW-R3 for guix-devel@gnu.org; Tue, 12 Mar 2019 14:56:58 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:57248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ma9-0001Xk-JL for guix-devel@gnu.org; Tue, 12 Mar 2019 14:56:57 -0400 In-Reply-To: <874l88tf91.fsf@elephly.net> 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: Ricardo Wurmus , gnuforever Cc: guix-devel@gnu.org On 2019-03-12, Ricardo Wurmus wrote: > gnuforever 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