unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Vagrant Cascadian <vagrant@debian.org>
To: Youni Git <git@youni.world>, raingloom <raingloom@riseup.net>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Devuan replaced grub and runs before Guix
Date: Sun, 09 Jan 2022 12:27:49 -0800	[thread overview]
Message-ID: <87sftwr6wq.fsf@ponder> (raw)
In-Reply-To: <17e3f964eaa.ff6cffb4211247.3299461496075338762@youni.world>

[-- Attachment #1: Type: text/plain, Size: 1825 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

      reply	other threads:[~2022-01-09 20:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-26 23:32 Devuan replaced grub and runs before Guix Youni Git
2021-12-29  0:11 ` raingloom
2022-01-09 12:54   ` Youni Git
2022-01-09 16:05     ` Youni Git
2022-01-09 20:27       ` Vagrant Cascadian [this message]

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sftwr6wq.fsf@ponder \
    --to=vagrant@debian.org \
    --cc=git@youni.world \
    --cc=help-guix@gnu.org \
    --cc=raingloom@riseup.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).