Re: Dual boot multiple fedora verions

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

 



On Sun, Nov 23, 2014 at 11:52 AM, Andy Campbell
<fedora@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Is there an elegant way to install two versions of Fedora at the same
> time ?

Not automatically.

> p1  boot1  ( F19)
> p2  boot2  ( F20)

What you end up with in this case, is broken F19 right now because in
the F20 install environment, the F19 / LV isn't activated. So
grub2-mkconfig won't find F19 and thus won't make a boot entry for it.
If you boot F20, activate all the LVs, and re-run grub2-mkconfig -o
/boot/grub2/grub.cfg then you'll get a grub menu that has both Fedora
20 and 19 boot entries.

However, the F19 boot entries are a.) generic, they do not contain any
Fedora 19 specific boot parameters; b.) it's not updated from within
Fedora 19 when you get kernel updates.

So this is sort of brain dead simple for upstream grub folks to fix,
but they just don't give a crap near as I can tell. Or maybe they
think it's so brain dead simple that users should do this, or the
distributions should make grub work this way - I don't know. UX is not
GRUB's forte.

What you can do instead is, on Fedora 20, modify /etc/default/grub,
adding a line to disable os-prober:
GRUB_DISABLE_OS_PROBER="true"

That will prevent it from using os-prober to generate the Fedora 19 entries.

Then you'll use /etc/grub.d/40_custom to add your own boot menu entry,
which will forward to the Fedora 19 grub.cfg using something like
this:

menuentry 'Fedora 19' {
set root='hd0,msdos1' ## I'm assuming your F19 grub root is the first
/boot partition
search --no-floppy --fs-uuid --set=root <uuidforF19boot> ## You can
can this fs volume UUID from blkid and just copy/paste it in, this is
optional but more reliable if you have more than one drive attached
configfile /boot/grub2/grub.cfg
}

Save that and rerun grub2-mkconfig -o /boot/grub2/grub.cfg

So what this does is it makes the Fedora 20 grub.cfg contain a single
menu entry for Fedora 19. If you choose that Fedora 19 menu entry you
will get a new GRUB menu that contains only Fedora 19 boot entries.
Since you're now directly using the Fedora 19 grub.cfg that's updated
by grubby when new kernels are installed, you'll always have an up to
date grub menu for F20 and F19 once you've done all this work.

-- 
Chris Murphy
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[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