# How change the default boot sequence of dual boot of Win 10 & Rocky 8.5

**URL:** <https://forums.rockylinux.org/t/how-change-the-default-boot-sequence-of-dual-boot-of-win-10-rocky-8-5/5643>\
**Category:** Rocky Linux Help & Support\
**Created:** [March 18, 2022, 9:28am UTC](https://forums.rockylinux.org/t/how-change-the-default-boot-sequence-of-dual-boot-of-win-10-rocky-8-5/5643 "2022-03-18T09:28:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![blues](https://avatars.discourse-cdn.com/v4/letter/b/258eb7/32.png) [@blues](https://forums.rockylinux.org/u/blues)\
**Post date:** [March 18, 2022, 9:28am UTC](https://forums.rockylinux.org/t/how-change-the-default-boot-sequence-of-dual-boot-of-win-10-rocky-8-5/5643/1 "2022-03-18T09:28:04Z")

</div>

The Grub boot menu is okay, but when I want change the default menu option to Windows 10, I can’t find the correct configuration file to made it.  
I remember I can do this operation easily in CentOS 7/Windows 10 Enviroment.  
my boot menu’s screenshot is as following:

 ![54757b6b23d96ae9f011b3c6ef36097](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/4/474ec909dbc2f3459d92f565153cc8630965171e.jpeg)

Does any guru know where is the configuration file for change the default bootmenu option?

Thanks first! 🙏

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [March 18, 2022, 11:47am UTC](https://forums.rockylinux.org/t/how-change-the-default-boot-sequence-of-dual-boot-of-win-10-rocky-8-5/5643/2 "2022-03-18T11:47:27Z")

</div>

I don’t have EL8 in dual boot. Well, I do, but with EFI. I have two boot entries in EFI: GRUB and Windows. GRUB is first, but EFI default is Windows. If I do nothing, Windows boots. If I hit ‘F12’, the EFI boot menu shows. Plain ‘Enter’ selects first entry: GRUB. GRUB menu shows and loads shortly the default: latest kernel.

On CentOS 7 systems I have had `GRUB_DEFAULT="Windows 10"` in `/etc/default/grub`, which makes  
`grub2-mkconfig` to include `set default="Windows 10"` in `grub.cfg`.

In same directory as `grub.cfg` I had `custom.cfg` that had the `menuentry 'Windows 10'`. The usual chainloader stanza.

The grub.cfg in EL8 does still have the

```auto
### BEGIN /etc/grub.d/41_custom ###
if [-f ${config_directory}/custom.cfg]; then
  source ${config_directory}/custom.cfg
elif [-z "${config_directory}" -a -f $prefix/custom.cfg]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

```

so one can create the custom.cfg, but since you have entry for Windows that is not necessary.

The beginning of grub.cfg has

```auto
if [-f ${config_directory}/grubenv]; then
  load_env -f ${config_directory}/grubenv
elif [-s $prefix/grubenv]; then
  load_env
fi
if ["${next_entry}"] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

```

when `GRUB_DEFAULT=saved` so if the `grubenv` contains `saved_entry=(name|id|index)_of_windows_entry` (probably set with `grub2-set-default`), then what happens?

(The reason I have separate custom.cfg is that if I rename that file, then GRUB picks first entry - -the latest kernel.)

---

<div class="post-metadata">

**Author:** ![desercat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/desercat/32/1192_2.png) [@desercat](https://forums.rockylinux.org/u/desercat)\
**Post date:** [March 18, 2022, 1:11pm UTC](https://forums.rockylinux.org/t/how-change-the-default-boot-sequence-of-dual-boot-of-win-10-rocky-8-5/5643/3 "2022-03-18T13:11:41Z")

</div>

SIGH!!! RH likes to make miserable for users. Just when everyone is accepted GRUB 2 as miserable as it was, RH has once again pulled the rug out from under our feet… because RH no longer uses GRUB2 config files /boot/grub2/grub.cfg. Instead they now use /boot/ loader/entries. This change explains why it was easy to due in CentOS 7.x which still used /boot/grub2/grub.cfg and seems to not work in Rocky Linux 8.5 which now uses /boot/loader/entries.

Best Wishes  
D’Cat

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [March 18, 2022, 3:47pm UTC](https://forums.rockylinux.org/t/how-change-the-default-boot-sequence-of-dual-boot-of-win-10-rocky-8-5/5643/4 "2022-03-18T15:47:31Z")

</div>

[quote=“desercat, post:3, topic:5643”]  
… because RH no longer uses GRUB2 config files /boot/grub2/grub.cfg. Instead they now use /boot/ loader/entries. [/quote]  
Misconception.

EL8 does use GRUB2 and GRUB2 does use grub.cfg. The only difference is that without BLS the boot stanzas are in the grub.cfg and every kernel add/remove has to edit grub.cfg, while with BLS each stanza is in separate file – all included by grub.cfg – and kernel add/remove neatly adds/removes files.

Besides, you can disable BLS.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:53am UTC](https://forums.rockylinux.org/t/how-change-the-default-boot-sequence-of-dual-boot-of-win-10-rocky-8-5/5643/5 "2023-08-25T03:53:22Z")

</div>


