edit /etc/default/grub
add or uncomment GRUB_DISABLE_OS_PROBER=false
save that file then run
sudo update-grub or sudo grub-mkconfig -o /boot/grub/grub.cfg
edit /etc/default/grub
add or uncomment GRUB_DISABLE_OS_PROBER=false
save that file then run
sudo update-grub or
sudo grub-mkconfig -o /boot/grub/grub.cfg
I don’t really understand this post and solution. And I thought you were (publicly) uninstalling and leaving Endeavour?
arch and all derivatives now disable os-prober by default. if you want it to work you must enable it. it’s true for arch, endeavour, manjaro, and all the other arch derivatives.
Thanks for the heads up!
Please do not post garbage commands.
They are not garbage
Yes they are. Don’t output to /dev files.
Output to /dev files? What are you going on about?
Depends if the arch derivative inherits grub from upstream arch repos, or maintains grub themselves. They may have a different grub config setup.
Smart
Right. /boot/grub/grub.cfg
My mind is warped tonight
This is why I don’t work it or bother trying to get certified
Ty for pointing that out
i do not get where this change is done from Arch-side and on my side i still can use os-prober without the need to add any change to my /etc/default/grub
file, where comes this information from?
depending on where come from Grub2
since last boothole and the hundred commit series concerning Secureboot ( 2021 march )
https://git.savannah.gnu.org/cgit/grub.git
https://git.savannah.gnu.org/cgit/grub.git/log/
and this patch
https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00193.html
==> os-prober is not patched at the moment
this is a real issue. just google the title of this thread.
Funny story: I’ve already bumped into this and I struggled with the solution because I had a typo in GRUB_DISABLE_OS_PROBER in my config and was nonplussed as to why it doesn’t work. took me an hour of trying various things to no avail, until I discovered my typo
so looks like hardcoded default option is changed to not use os-prober per default, but i do not set my /etc/default/grub to use os-prober and grub-mkconfig still use it:
[13:11:47] joekamprad :: Ungeheuer64 ➜ ~ » pacman -Qs grub
local/grub 2:2.04-10
GNU GRand Unified Bootloader (2)
local/grub-tools 1.6.5-1
Fixes, additions and enhancements to grub and os-prober.
local/grub2-theme-endeavouros 20210131-1
EndeavourOS grub2 theme
local/python-markdown 3.3.4-1
Python implementation of John Gruber's Markdown.
[13:11:56] joekamprad :: Ungeheuer64 ➜ ~ » sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] Passwort fĂĽr joekamprad:
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Found EndeavourOS Linux (rolling) on /dev/sda2
Found Windows Boot Manager on /dev/sdd1@/efi/Microsoft/Boot/bootmgfw.efi
done
Apr 28 13:12:22 Ungeheuer64 os-prober[838472]: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 10qnx[838474]: debug: /dev/sda1 is not a QNX4 partition: exiting
Apr 28 13:12:22 Ungeheuer64 os-prober[838475]: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 macosx-prober[838477]: debug: /dev/sda1 is not an HFS+ partition: exiting
Apr 28 13:12:22 Ungeheuer64 os-prober[838478]: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 20microsoft[838480]: debug: Skipping legacy bootloaders on UEFI system
Apr 28 13:12:22 Ungeheuer64 os-prober[838481]: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 30utility[838483]: debug: /dev/sda1 is a FAT32 partition
Apr 28 13:12:22 Ungeheuer64 os-prober[838490]: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 os-prober[838496]: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 os-prober[838502]: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 os-prober[838504]: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 83haiku[838507]: debug: /dev/sda1 is not a BeFS partition: exiting
Apr 28 13:12:22 Ungeheuer64 os-prober[838509]: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 os-prober[838525]: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sda1
Apr 28 13:12:22 Ungeheuer64 os-prober[838545]: debug: running /usr/lib/os-probes/mounted/05efi on mounted /dev/sda2
Apr 28 13:12:22 Ungeheuer64 05efi[838547]: debug: /dev/sda2 is ext4 partition: exiting
Apr 28 13:12:22 Ungeheuer64 os-prober[838548]: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sda2
Apr 28 13:12:22 Ungeheuer64 10freedos[838550]: debug: /dev/sda2 is not a FAT partition: exiting
Apr 28 13:12:22 Ungeheuer64 os-prober[838551]: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sda2
I had it happen on mine on an Arch install that i got these messages when grub updated.
so the problem with grub is a security issue with os-prober?
in 2020 there was first boothole
https://www.phoronix.com/scan.php?page=news_item&px=BootHole-GRUB2-Secure-Boot
then in grub2 in 2021 ( more than 117 patches )
https://www.phoronix.com/scan.php?page=news_item&px=GRUB-2021-Secure-Boot-Issues
see these link
https://git.savannah.gnu.org/cgit/grub.git
https://git.savannah.gnu.org/cgit/grub.git/log/
os-prober is still under work , not patched , by default is now false
https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00193.html
and this post
https://lists.gnu.org/archive/html/grub-devel/2021-04/msg00086.html
( last version 2.04 tagged is more than 3 or 4 years )
git grub savannah is patched by “common” distributions linux for all architecture cpu boot , inside any distribution they have also 200 patches that cant be updated on main git ( too specific )
and that give very difficult work to validate theses different patches after
right. so bad idea using os-prober