Re: Dual boot multiple fedora verions

2014-11-25 Thread Andy Campbell
On Sun, 23 Nov 2014 22:12:51 +0100, poma wrote:

 On 23.11.2014 22:05, poma wrote:
 On 23.11.2014 21:57, poma wrote:
 On 23.11.2014 21:47, Chris Murphy wrote:
 On Sun, Nov 23, 2014 at 1:40 PM, poma pomidorabelis...@gmail.com
 wrote:

 Sure,
 shared single /boot with a extlinux/extlinux.conf

 That's a good idea also. Single /boot means one grub.cfg or
 extlinux.conf. And the kernels each have distinct naming conventions
 between distro versions so no conflicts there. Grubby will update the
 menu entries when new kernels are installed.

...
 The initial *manual* entry, not via anaconda.
 Anaconda's bootloader tampering with each new installation is expressly
 excluded!
 
 
 
 Naturally RAID1 is covered with the Extlinux, and as a welcome addition
 /boot can be doubled.

Thanks for the suggestions.  I'm trying out both
solutions with a VM.  

-- 
users mailing list
users@lists.fedoraproject.org
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


Re: Dual boot multiple fedora verions

2014-11-23 Thread poma
On 23.11.2014 19:52, Andy Campbell wrote:
 Is there an elegant way to install two versions of Fedora at the same 
 time ?
 
 I like to keep the existing version running, while I test/setup new 
 version, then swap when I'm happy everything is running ok.  Previously 
 I've done with a boot loader like Air-Boot  ( http://sourceforge.net/
 projects/air-boot/ ) and partitioned my hard drive with
 
 p1  boot1  ( F19)
 p2  boot2  ( F20)
 p3  LVM
 / for F19
 / for F20
 /home 
 ...
 
 Then told the installer to use the relevant /boot to install the 
 bootloader.  However that sort of broke from F18 and I've had to use the 
 workaround in bug 872826 to get that to work.
 
 Can I just use grub2 ? to manage booting, I guess one version of F20 will 
 have to be the owner.  How will updates work, can they both update the 
 grub2 config when the kernel is updated ?  I've googled around and not 
 really found any simple solutions. This artificial looks possible, but 
 seem to require some manual fiddling around https://
 www.happyassassin.net/2014/01/08/how-to-do-manual-multi-boot-
 configuration-with-fedora/
 
 I don't think its too much of a mad idea to want to do a staged upgrade 
 to next version, and I quite like have a clean install to get rid of all
 the stuff I've installed just to play with.
 
 - Any suggestions, or link's I haven't found.
 
 Thanks in advance
 Andy
 

Sure, 
shared single /boot with a extlinux/extlinux.conf


-- 
users mailing list
users@lists.fedoraproject.org
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


Re: Dual boot multiple fedora verions

2014-11-23 Thread Chris Murphy
On Sun, Nov 23, 2014 at 11:52 AM, Andy Campbell
fed...@starsend.force9.co.uk 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@lists.fedoraproject.org
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


Re: Dual boot multiple fedora verions

2014-11-23 Thread Chris Murphy
On Sun, Nov 23, 2014 at 1:40 PM, poma pomidorabelis...@gmail.com wrote:

 Sure,
 shared single /boot with a extlinux/extlinux.conf

That's a good idea also. Single /boot means one grub.cfg or
extlinux.conf. And the kernels each have distinct naming conventions
between distro versions so no conflicts there. Grubby will update the
menu entries when new kernels are installed.

-- 
Chris Murphy
-- 
users mailing list
users@lists.fedoraproject.org
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


Re: Dual boot multiple fedora verions

2014-11-23 Thread poma
On 23.11.2014 21:47, Chris Murphy wrote:
 On Sun, Nov 23, 2014 at 1:40 PM, poma pomidorabelis...@gmail.com wrote:
 
 Sure,
 shared single /boot with a extlinux/extlinux.conf
 
 That's a good idea also. Single /boot means one grub.cfg or
 extlinux.conf. And the kernels each have distinct naming conventions
 between distro versions so no conflicts there. Grubby will update the
 menu entries when new kernels are installed.
 

/boot/extlinux/extlinux.conf
ui menu.c32
menu title The EXTLINUX bootloader
timeout 50

label Fedora (3.17.3-300.fc21.x86_64) 21 (Twenty One)
  kernel /vmlinuz-3.17.3-300.fc21.x86_64
  append root=UUID=...
  initrd /initramfs-3.17.3-300.fc21.x86_64.img

label Fedora (3.17.3-300.fc21.i686) 21 (Twenty One)
  kernel /vmlinuz-3.17.3-300.fc21.i686
  append root=UUID=...
  initrd /initramfs-3.17.3-300.fc21.i686.img

label CentOS Linux (3.10.0-123.9.3.el7.x86_64) 7 (Core)
  kernel /vmlinuz-3.10.0-123.9.3.el7.x86_64
  append root=UUID=...
  initrd /initramfs-3.10.0-123.9.3.el7.x86_64.img

label Memtest86+ 5.01
  kernel /memtest86+-5.01

label BFO boot.fedoraproject.org - iPXE
  kernel /ipxe.lkrn

Yeah, 
of course should be done for each new installation - the initial entry point 
and that's it, the rest is covered via grubby.

-- 
users mailing list
users@lists.fedoraproject.org
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


Re: Dual boot multiple fedora verions

2014-11-23 Thread poma
On 23.11.2014 21:57, poma wrote:
 On 23.11.2014 21:47, Chris Murphy wrote:
 On Sun, Nov 23, 2014 at 1:40 PM, poma pomidorabelis...@gmail.com wrote:

 Sure,
 shared single /boot with a extlinux/extlinux.conf

 That's a good idea also. Single /boot means one grub.cfg or
 extlinux.conf. And the kernels each have distinct naming conventions
 between distro versions so no conflicts there. Grubby will update the
 menu entries when new kernels are installed.

 
 /boot/extlinux/extlinux.conf
 ui menu.c32
 menu title The EXTLINUX bootloader
 timeout 50
 
 label Fedora (3.17.3-300.fc21.x86_64) 21 (Twenty One)
   kernel /vmlinuz-3.17.3-300.fc21.x86_64
   append root=UUID=...
   initrd /initramfs-3.17.3-300.fc21.x86_64.img
 
 label Fedora (3.17.3-300.fc21.i686) 21 (Twenty One)
   kernel /vmlinuz-3.17.3-300.fc21.i686
   append root=UUID=...
   initrd /initramfs-3.17.3-300.fc21.i686.img
 
 label CentOS Linux (3.10.0-123.9.3.el7.x86_64) 7 (Core)
   kernel /vmlinuz-3.10.0-123.9.3.el7.x86_64
   append root=UUID=...
   initrd /initramfs-3.10.0-123.9.3.el7.x86_64.img
 
 label Memtest86+ 5.01
   kernel /memtest86+-5.01
 
 label BFO boot.fedoraproject.org - iPXE
   kernel /ipxe.lkrn
 
 Yeah, 
 of course should be done for each new installation - the initial entry point 
 and that's it, the rest is covered via grubby.
 

The initial *manual* entry, not via anaconda.
Anaconda's bootloader tampering with each new installation is expressly 
excluded!


-- 
users mailing list
users@lists.fedoraproject.org
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


Re: Dual boot multiple fedora verions

2014-11-23 Thread poma
On 23.11.2014 22:05, poma wrote:
 On 23.11.2014 21:57, poma wrote:
 On 23.11.2014 21:47, Chris Murphy wrote:
 On Sun, Nov 23, 2014 at 1:40 PM, poma pomidorabelis...@gmail.com wrote:

 Sure,
 shared single /boot with a extlinux/extlinux.conf

 That's a good idea also. Single /boot means one grub.cfg or
 extlinux.conf. And the kernels each have distinct naming conventions
 between distro versions so no conflicts there. Grubby will update the
 menu entries when new kernels are installed.


 /boot/extlinux/extlinux.conf
 ui menu.c32
 menu title The EXTLINUX bootloader
 timeout 50

 label Fedora (3.17.3-300.fc21.x86_64) 21 (Twenty One)
   kernel /vmlinuz-3.17.3-300.fc21.x86_64
   append root=UUID=...
   initrd /initramfs-3.17.3-300.fc21.x86_64.img

 label Fedora (3.17.3-300.fc21.i686) 21 (Twenty One)
   kernel /vmlinuz-3.17.3-300.fc21.i686
   append root=UUID=...
   initrd /initramfs-3.17.3-300.fc21.i686.img

 label CentOS Linux (3.10.0-123.9.3.el7.x86_64) 7 (Core)
   kernel /vmlinuz-3.10.0-123.9.3.el7.x86_64
   append root=UUID=...
   initrd /initramfs-3.10.0-123.9.3.el7.x86_64.img

 label Memtest86+ 5.01
   kernel /memtest86+-5.01

 label BFO boot.fedoraproject.org - iPXE
   kernel /ipxe.lkrn

 Yeah, 
 of course should be done for each new installation - the initial entry point 
 and that's it, the rest is covered via grubby.

 
 The initial *manual* entry, not via anaconda.
 Anaconda's bootloader tampering with each new installation is expressly 
 excluded!
 
 

Naturally RAID1 is covered with the Extlinux, and as a welcome addition /boot 
can be doubled.


-- 
users mailing list
users@lists.fedoraproject.org
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


Re: Dual boot multiple fedora verions

2014-11-23 Thread Tom Horsley
On Sun, 23 Nov 2014 18:52:51 + (UTC)
Andy Campbell wrote:

 Is there an elegant way to install two versions of Fedora at the same 
 time ?

I always use a stand alone grub2 that boots from the MBR and
has configfile entries to boot the different fedora versions
I have installed in separate partitions with everything installed
in / (/boot, /home, etc. as a ordinary subdirectories).

I also generally install fedora first in a virtual machine, then
copy the virtual filesystem to a real filesystem and edit various
UUIDs, partition numbers, etc that appear in grub.cfg and fstab.
This way I never have to deal with the horrid anaconda partitioning.
-- 
users mailing list
users@lists.fedoraproject.org
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