Hi, there are two way to easily switch between two fedora.
Note: If I’m writing some basic stuff here, I’m not intended to offense anyone as newbie. I just trying to explain as detail as possible if there any new linux user randomly landing here.
First we can create script with efibootmgr
to change the boot order. Let’s say rawhide.sh
.
#!/bin/bash
sudo efibootmgr -o 0002,0003,0000,0001,0004,0017,0014,0015,0016,0018,0019,001A,001B,001C
systemctl reboot
Then run bash rawhide.sh
. Please refer to result of $ efibootmgr
to create the boot order.
Another ways and please read until the important part in the end of this post
Edit /etc/grub.d/40_custom
and add new line with:
#!/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 "Click Me First" {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 1111-uuid-of-rawhide-boot-partition-2222
configfile /boot/grub2/grub.cfg
}
Change 1111-uuid-of-rawhide-boot-partition-2222
with /boot
partition UUID of your second Fedora installation (find it with lsblk -apf
).
Mount your /boot
of the second Fedora to /mnt
then go to sudo cd /mnt/boot/loader/entries
(since loader
directory belong to root
, we need sudo
).
Copy all content of /mnt/boot/loader/entries
to current Fedora in/boot/loader/entries
with sudo cp /mnt/loader/entries/* /boot/loader/entries
.
Update the bootloader with sudo grub2-mkconfig -o /boot/grub2/grub.cfg
then reboot.
IMPORTANT:
On boot list entries, before clicking any second Fedora installation (let’s say Rawhide), select and click first Click Me First
on the menu list (should be on the bottom) and this will look like do nothing but in the background will load the config. Then continue to select the boot list of your second Fedora installation.
If you’re not select the Click Me First
it will fail to boot your second Fedora installation. No need to select and click Click Me First
for current installation.