[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Devuan replaced grub and runs before Guix
From: |
Vagrant Cascadian |
Subject: |
Re: Devuan replaced grub and runs before Guix |
Date: |
Sun, 09 Jan 2022 12:27:49 -0800 |
On 2022-01-09, Youni Git wrote:
> 1. I just enter grub command line while grub generated by Devuan appeared
> (with button 'c')
>
> 2. found grub.cfg on guix disk here:
>
> ls (hd0,gpt2)/boot/grub/grub.cfg
>
> 3. And used it to run grub with this menu config file like this:
>
> configfile (hd0,gpt2)/boot/grub/grub.cfg
>
> 4. Guix grub menu showed with its backgrund. And I booted to Guix OS
>
> 5. Then I just copied Guix menuentry from that grub.cfg file to my Devuan
> grub:
>
> # vim /etc/grub.d/40_custom:
>
>
>
> menuentry "GNU with Linux-Libre 5.13.13 (#33, 2021-09-04 17:57)" {
> search --file --set
> /gnu/store/y0dz7jdw78q3kgcjc8xy8zncxyl31k5p-linux-libre-5.13.13/bzImage
> linux
> /gnu/store/y0dz7jdw78q3kgcjc8xy8zncxyl31k5p-linux-libre-5.13.13/bzImage
> --root=/dev/sda2 --system=/var/guix/profiles/system-33-link
> --load=/var/guix/profiles/system-33-link/boot
> modprobe.blacklist=pcspkr,snd_pcsp,bluetooth,btusb,ath3k
> initrd /gnu/store/ccvhwm8h7h5xijab6gi65bjirz3nyxbv-raw-initrd/initrd.cpio.gz
> }
Glad it worked out for you!
You could also create a menu entry something like:
menuentry "load guix grub configuration" {
configfile (hd0,gpt2)/boot/grub/grub.cfg
}
This way, you don't have to update the grub menu every time you update
guix's configuration... or even worse, if you delete the generation that
happened to be hard-coded in your grub.cfg. You can maybe add a similar
entry in guix's grub menu to boot Devuan from guix's grub menu too.
You might want to get fancy and use the "search" command rather than
hard-coding "(hd0,gpt2)" though I'm not sure exactly how to pull that
off, since grub.cfg isn't a unique filename. Maybe using uuid or
partuuid or something like that.
Of course, feel free to experiment, or not!
live well,
vagrant
signature.asc
Description: PGP signature