From: William <willbilly@fedora.email>
To: help-guix@gnu.org
Subject: Adding a menu entry on GRUB.
Date: Thu, 11 Apr 2024 23:18:03 +0200 [thread overview]
Message-ID: <20240411231803.47f1a2e2@fedora.email> (raw)
Hello.
I'm currently trying to add a menu entry on GRUB through the Guix
system declaration to boot another GNU+Linux system but I don't have
much clue how to do it with this setup.
The other system currently has three partitions, one for "/boot",
one for "/" and one for "/home", I tried defining a menu entry like
this:
```
(menu-entry
(label "GNU/Linux")
(device (uuid
"d757ca6e-ae43-41b7-bc73-7e80cd270e05" 'ext4))
(linux "/vmlinuz-linux")
(linux-arguments
'("root=UUID=da4c92d2-099f-4046-ab1d-1695860f33f0
rw net.ifnames=0 quiet"))
(initrd "/intel-ucode.img /amd-ucode.img
/initramfs-linux.img"))
```
As you can see, it contains two different UUIDs, this is intended, as
one UUID is for the "/boot" partition, the other one is for the "/"
partition, I copied these values from the grub.cfg menu entry generated
by os-prober during the installation of this system, and they look the
same on the menu entry defined by Guix.
However, this entry does not work, when I try to boot the system
from the GRUB menu, it says it couldn't find the device by UUID
"d757ca6e-ae43-41b7-bc73-7e80cd270e05", which is the "/boot" partition.
I checked and double checked if they're the right UUIDs and they are,
so the issue seems that GRUB must be aware first that this "/boot"
partition relies on the "/" partition, but on the manual I don't see
exactly how I could define that.
Is this implemented and possible? When I tried defining a menu entry
for another operating system it did work, but that install was a single
partition.
Both GuixSD and the other operating system are installed on MBR
partitions and use the old "legacy/BIOS" bootstrap method.
next reply other threads:[~2024-04-11 21:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-11 21:18 William [this message]
2024-04-12 11:04 ` Adding a menu entry on GRUB 宋文武
2024-04-12 15:37 ` William
2024-04-12 20:21 ` Felix Lechner via
2024-04-21 15:48 ` William
2024-04-22 0:53 ` Felix Lechner via
2024-04-22 19:37 ` William
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=20240411231803.47f1a2e2@fedora.email \
--to=willbilly@fedora.email \
--cc=help-guix@gnu.org \
/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).