[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: boot multiple Gnu/Linux Distributions from one USB key
From: |
Vagrant Cascadian |
Subject: |
Re: boot multiple Gnu/Linux Distributions from one USB key |
Date: |
Tue, 12 Mar 2019 11:56:54 -0700 |
On 2019-03-12, Ricardo Wurmus wrote:
> gnuforever <address@hidden> 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