Re: multiboot 2 HD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/12/25 3:25 PM, George N. White III wrote:
On Sat, Jul 12, 2025 at 6:08 PM Samuel Sieb <samuel@xxxxxxxx <mailto:samuel@xxxxxxxx>> wrote:

    On 7/12/25 1:57 PM, Patrick Dupre via users wrote:
     >> Booting multiple Fedora installs from the same grub can be
    tricky.  I
     >> think the easiest way is for one of the grub configs to have an
    entry to
     >> chain to the other config.
     >>
     > Yes, How I could chain 2 /boot ?

    I think you just add an entry to the primary grub cfg that runs
    "configfile path_to_other_grub_cfg".  You'll have to figure out what
    the
    path is, probably starting with "(hd1)".

    Looks like you can put the menu entry in /boot/grub2/custom.cfg.



I have used:

#!/usr/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry "Boot from <name> Drive" {
     set root=UUID=<UUID>
     linux /vmlinuz root=/<UUID> ro
     initrd /initrd.img
}

I think you can put the menuentry in the file I mentioned and it will get loaded at runtime. The way you're doing it requires you to re-generate the grub config if you make any changes.

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux