The officially official Devuan Forum!

You are not logged in.

#1 2021-11-29 10:54:38

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,231  

Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

I received an update to grub on my two Ceres-based systems (version 2.06-2), and during the upgrade, it warned me that os-prober would no longer run. So that means that people with dual-boot or multi-boot computers will no longer be able to...

update-grub

...in order to get their other systems to show in the grub menu.

It did give a very vague clue that doesn't really help people if they don't know where to look. neutral

C'mon devs, you can do better than that!  tongue

Anyway,

To fix this issue, you can open and edit the following file...

/etc/default/grub

...and add the following line...

GRUB_DISABLE_OS_PROBER=false

Save and close the file, then open a terminal and run an...

update-grub

Not sure if this has affected people running daedalus or not...since I don't have a daedalus system. tongue


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#2 2021-11-29 11:13:07

Altoid
Member
Registered: 2017-05-07
Posts: 1,085  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

Hello:

MiyoLinux wrote:

... received an update to grub ...
... os-prober would no longer run.
... people with dual-boot or multi-boot computers will no longer be able to...

update-grub

...in order to get their other systems to show in the grub menu.

Any idea as to what led to that?
Is it some systemd related thing?

That will probably break the grub-customizer application.

MiyoLinux wrote:

C'mon devs, you can do better than that!

Indeed ...
+100

MiyoLinux wrote:

... open and edit the following file...
/etc/default/grub
...and add the following line...

GRUB_DISABLE_OS_PROBER=false

Save and close the file, then open a terminal and run an...

update-grub

Thank you very much for the heads-up.

Best,

A.

Offline

#3 2021-11-29 11:52:36

rolfie
Member
Registered: 2017-11-25
Posts: 675  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

My experience is that os-prober never worked on efi systems. Valid for Stretch/ASCII, Buster/Beowulf, Bullseye/Chimaera.

rolfie

Offline

#4 2021-11-29 12:18:48

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,231  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

Altoid wrote:

Any idea as to what led to that?

Well, from what I've read, and depending on which story a user wants to believe...

1 - Gossip (the devs of grub and the devs of os-prober had some kind of nervous-jerkdown with each other)
     I don't know if that's true, and I don't care.

2. Security (the devs of grub claim there's security issues with os-prober)
    I don't know it that's true either. It's not explained in the following link. All they say is that os-prober has shortcomings, and...

lead to potentially dangerous use cases and borderline opening attack vectors.

...however, I can't find how the grub devs have discovered or documented why os-prober has those issues.

https://git.savannah.gnu.org/cgit/grub. … c66f517666


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#5 2021-11-29 12:22:16

blackhole
Member
Registered: 2020-03-16
Posts: 65  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

https://www.gnu.org/software/grub/manua … figuration

It is disabled by default since automatic and silent execution of os-prober, and creating boot entries based on that data, is a potential attack vector.

Offline

#6 2021-11-29 12:24:03

rolfie
Member
Registered: 2017-11-25
Posts: 675  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

Just tried it on my Chimaera box (Arch and Beowulf in parallel installations): Adding that line to /etc/default/grub does not make any difference on efi installations.

rolfie

Last edited by rolfie (2021-11-29 12:25:33)

Offline

#7 2021-11-29 12:38:35

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

Probably better off using grub2 to chainload other linux/unix OS's rather than rely on os-prober.

https://www.gnu.org/software/grub/manua … ading.html

https://wiki.debian.org/DualBoot/Windows10

https://wiki.gentoo.org/wiki/GRUB2/Chainloading

Offline

#8 2021-11-29 12:41:12

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,231  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

rolfie wrote:

Just tried it on my Chimaera box (Arch and Beowulf in parallel installations): Adding that line to /etc/default/grub does not make any difference on efi installations.

rolfie

I don't use EFI.

I wonder why it doesn't work?


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#9 2021-11-29 12:43:21

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,231  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

hevidevi wrote:

Probably better off using grub2 to chainload other linux/unix OS's rather than rely on os-prober.

https://www.gnu.org/software/grub/manua … ading.html

https://wiki.debian.org/DualBoot/Windows10

https://wiki.gentoo.org/wiki/GRUB2/Chainloading

That may be the ticket. That's what I had to do when adding OpenBSD or NetBSD.


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#10 2021-11-29 12:55:48

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

Ive always had issues when using os-prober and much prefer to use the chainload method Miyo. Both grub2 and os-prober in my experience over the last few years was that they would clash with various OS's like for instance, archlinux with debian. I believe grub devs are probably correct in their analysis of os-prober.

Offline

#11 2021-12-01 03:21:06

pcalvert
Member
Registered: 2017-05-15
Posts: 113  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

rolfie wrote:

My experience is that os-prober never worked on efi systems. Valid for Stretch/ASCII, Buster/Beowulf, Bullseye/Chimaera.

What about a Jessie system that was upgraded to Stretch? Would the upgrade remove the working multi-boot menu?


“The goal of socialism is communism.”
— Vladimir Lenin

Offline

#12 2021-12-01 12:51:17

sgage
Member
Registered: 2016-12-01
Posts: 304  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

rolfie wrote:

Just tried it on my Chimaera box (Arch and Beowulf in parallel installations): Adding that line to /etc/default/grub does not make any difference on efi installations.

rolfie

Works fine on my efi rig running either Daedalus or Ceres. Is it even an issue in Chimaera?

Offline

#13 2021-12-01 14:12:06

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,231  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

pcalvert wrote:

What about a Jessie system that was upgraded to Stretch? Would the upgrade remove the working multi-boot menu?

I just checked package versions of both Devuan and Debian.

The only systems that are using version 2.06 are Devuan Ceres and Debian Sid. Everything else is using a lower version number (for now). So, it shouldn't affect you as far as I can tell.

Last edited by MiyoLinux (2021-12-01 14:13:09)


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#14 2021-12-01 23:01:55

pcalvert
Member
Registered: 2017-05-15
Posts: 113  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

MiyoLinux wrote:

The only systems that are using version 2.06 are Devuan Ceres and Debian Sid. Everything else is using a lower version number (for now). So, it shouldn't affect you as far as I can tell.

Thank-you. I need to upgrade that system soon, and having the multi-boot menu break is a problem that I don't need.


“The goal of socialism is communism.”
— Vladimir Lenin

Offline

#15 2021-12-01 23:28:52

pcalvert
Member
Registered: 2017-05-15
Posts: 113  

Re: Attention Dual/Multi-booters: Latest GRUB (2.06-2) disables os-prober

blackhole wrote:

https://www.gnu.org/software/grub/manua … figuration

It is disabled by default since automatic and silent execution of os-prober, and creating boot entries based on that data, is a potential attack vector.

It seems to me that there's a simple solution that will solve this problem -- ask the user to confirm that the information obtained from os-prober is correct. Or write the info to the appropriate config file, but commented out, along with a comment above it explaining why it's commented out and the importance of verifying that the information is correct before uncommenting it.


“The goal of socialism is communism.”
— Vladimir Lenin

Offline

Board footer