All of lore.kernel.org
 help / color / mirror / Atom feed
* Configuration option to disable os-prober?
@ 2009-07-08 15:38 Colin Watson
  2009-07-08 17:22 ` Pavel Roskin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Colin Watson @ 2009-07-08 15:38 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

Hi,

Some people seem to want to disable os-prober for various reasons (e.g.
they have lots of test installations lying around that they don't
normally want to get in the way, or they don't want installations on
external drives to be included permanently in the boot menu, etc.). Now,
they can just remove the os-prober package, but that doesn't really
scale as other packages are allowed to depend on it too.

Perhaps we could have a configuration option for this? Patch attached.

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]

[-- Attachment #2: grub.os-prober.diff --]
[-- Type: text/x-diff, Size: 482 bytes --]

Index: util/grub.d/30_os-prober.in
===================================================================
--- util/grub.d/30_os-prober.in	(revision 2402)
+++ util/grub.d/30_os-prober.in	(working copy)
@@ -22,6 +22,10 @@
 
 . ${libdir}/grub/grub-mkconfig_lib
 
+if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
+  exit 0
+fi
+
 if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
   # missing os-prober and/or linux-boot-prober
   exit 0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-07-08 15:38 Configuration option to disable os-prober? Colin Watson
@ 2009-07-08 17:22 ` Pavel Roskin
  2009-07-08 17:58   ` Isaac Dupree
  2009-07-10 17:31 ` Robert Millan
  2009-08-23 12:59 ` Robert Millan
  2 siblings, 1 reply; 11+ messages in thread
From: Pavel Roskin @ 2009-07-08 17:22 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, 2009-07-08 at 16:38 +0100, Colin Watson wrote:
> Hi,
> 
> Some people seem to want to disable os-prober for various reasons (e.g.
> they have lots of test installations lying around that they don't
> normally want to get in the way, or they don't want installations on
> external drives to be included permanently in the boot menu, etc.). Now,
> they can just remove the os-prober package, but that doesn't really
> scale as other packages are allowed to depend on it too.
> 
> Perhaps we could have a configuration option for this? Patch attached.

Fine with me (but I'd like to hear from somebody who actually runs
Debian or Ubuntu).

Please provide ChangeLog entries for your patches so that nobody has to
put words into your mouth.

-- 
Regards,
Pavel Roskin



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-07-08 17:22 ` Pavel Roskin
@ 2009-07-08 17:58   ` Isaac Dupree
  2009-07-08 18:09     ` Pavel Roskin
  0 siblings, 1 reply; 11+ messages in thread
From: Isaac Dupree @ 2009-07-08 17:58 UTC (permalink / raw)
  To: The development of GRUB 2

Pavel Roskin wrote:
> On Wed, 2009-07-08 at 16:38 +0100, Colin Watson wrote:
>> Hi,
>>
>> Some people seem to want to disable os-prober for various reasons (e.g.
>> they have lots of test installations lying around that they don't
>> normally want to get in the way, or they don't want installations on
>> external drives to be included permanently in the boot menu, etc.). Now,
>> they can just remove the os-prober package, but that doesn't really
>> scale as other packages are allowed to depend on it too.
>>
>> Perhaps we could have a configuration option for this? Patch attached.
> 
> Fine with me (but I'd like to hear from somebody who actually runs
> Debian or Ubuntu).

I run Ubuntu... I can't say I've yet wanted to do anything that needed 
this patch, but it seems like the right idea to me... or,

er, hmm, Configure option versus runtime option?  I don't know from my 
cursory inspection if there's an issue here, but you (Colin) would be 
able to describe how/whether that's relevant

-Isaac



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-07-08 17:58   ` Isaac Dupree
@ 2009-07-08 18:09     ` Pavel Roskin
  0 siblings, 0 replies; 11+ messages in thread
From: Pavel Roskin @ 2009-07-08 18:09 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, 2009-07-08 at 13:58 -0400, Isaac Dupree wrote:

> er, hmm, Configure option versus runtime option?  I don't know from my 
> cursory inspection if there's an issue here, but you (Colin) would be 
> able to describe how/whether that's relevant

I think the configurations options is the only way to go, as
grub-mkimage can be rerun by the OS scripts when the kernel is updated.
We already have similar "disable" options, such as
GRUB_DISABLE_LINUX_RECOVERY.

-- 
Regards,
Pavel Roskin



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-07-08 15:38 Configuration option to disable os-prober? Colin Watson
  2009-07-08 17:22 ` Pavel Roskin
@ 2009-07-10 17:31 ` Robert Millan
  2009-07-10 20:19   ` Colin Watson
  2009-08-23 12:59 ` Robert Millan
  2 siblings, 1 reply; 11+ messages in thread
From: Robert Millan @ 2009-07-10 17:31 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Jul 08, 2009 at 04:38:23PM +0100, Colin Watson wrote:
> Hi,
> 
> Some people seem to want to disable os-prober for various reasons (e.g.
> they have lots of test installations lying around that they don't
> normally want to get in the way, or they don't want installations on
> external drives to be included permanently in the boot menu, etc.). Now,
> they can just remove the os-prober package, but that doesn't really
> scale as other packages are allowed to depend on it too.
> 
> Perhaps we could have a configuration option for this? Patch attached.

Hi,

I'm unfamiliar with os-prober.  What other purposes are there for installing
it?  grub-mkconfig is the only one I can think of, so the situation you
describe sounds very unlikely.  Could you ellaborate?

I'm concerned about the number of options in grub-mkconfig in general.  It
has a tendency to grow a lot, and unfortunately they're not documented.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-07-10 17:31 ` Robert Millan
@ 2009-07-10 20:19   ` Colin Watson
  2009-07-11 18:29     ` Robert Millan
  0 siblings, 1 reply; 11+ messages in thread
From: Colin Watson @ 2009-07-10 20:19 UTC (permalink / raw)
  To: The development of GRUB 2

On Fri, Jul 10, 2009 at 07:31:21PM +0200, Robert Millan wrote:
> On Wed, Jul 08, 2009 at 04:38:23PM +0100, Colin Watson wrote:
> > Some people seem to want to disable os-prober for various reasons (e.g.
> > they have lots of test installations lying around that they don't
> > normally want to get in the way, or they don't want installations on
> > external drives to be included permanently in the boot menu, etc.). Now,
> > they can just remove the os-prober package, but that doesn't really
> > scale as other packages are allowed to depend on it too.
> > 
> > Perhaps we could have a configuration option for this? Patch attached.
> 
> Hi,
> 
> I'm unfamiliar with os-prober.  What other purposes are there for installing
> it?  grub-mkconfig is the only one I can think of, so the situation you
> describe sounds very unlikely.  Could you ellaborate?

Well, I happen to know that our graphical installer depends on it :-),
and sometimes people install it for testing purposes (or it accidentally
remains installed). More generally though I'm not a fan of "remove this
package" as a configuration mechanism.

> I'm concerned about the number of options in grub-mkconfig in general.  It
> has a tendency to grow a lot, and unfortunately they're not documented.

Maybe that's amenable to being addressed in itself - perhaps a manual
page? (info is fine for complete manuals for large systems but not
really great for quick-reference kind of things.)

-- 
Colin Watson                                       [cjwatson@ubuntu.com]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-07-10 20:19   ` Colin Watson
@ 2009-07-11 18:29     ` Robert Millan
  0 siblings, 0 replies; 11+ messages in thread
From: Robert Millan @ 2009-07-11 18:29 UTC (permalink / raw)
  To: The development of GRUB 2

On Fri, Jul 10, 2009 at 09:19:12PM +0100, Colin Watson wrote:
> On Fri, Jul 10, 2009 at 07:31:21PM +0200, Robert Millan wrote:
> > On Wed, Jul 08, 2009 at 04:38:23PM +0100, Colin Watson wrote:
> > > Some people seem to want to disable os-prober for various reasons (e.g.
> > > they have lots of test installations lying around that they don't
> > > normally want to get in the way, or they don't want installations on
> > > external drives to be included permanently in the boot menu, etc.). Now,
> > > they can just remove the os-prober package, but that doesn't really
> > > scale as other packages are allowed to depend on it too.
> > > 
> > > Perhaps we could have a configuration option for this? Patch attached.
> > 
> > Hi,
> > 
> > I'm unfamiliar with os-prober.  What other purposes are there for installing
> > it?  grub-mkconfig is the only one I can think of, so the situation you
> > describe sounds very unlikely.  Could you ellaborate?
> 
> Well, I happen to know that our graphical installer depends on it :-),
> and sometimes people install it for testing purposes (or it accidentally
> remains installed). More generally though I'm not a fan of "remove this
> package" as a configuration mechanism.

Ok then.

> > I'm concerned about the number of options in grub-mkconfig in general.  It
> > has a tendency to grow a lot, and unfortunately they're not documented.
> 
> Maybe that's amenable to being addressed in itself - perhaps a manual
> page? (info is fine for complete manuals for large systems but not
> really great for quick-reference kind of things.)

We generate manpages dynamically using help2man.  Improving --help output
would improve the manpage, and it'd be nice to have all of this documented.

But this is just my "wish of the day".  It shouldn't be a stopper for adding
this option if you need it.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-07-08 15:38 Configuration option to disable os-prober? Colin Watson
  2009-07-08 17:22 ` Pavel Roskin
  2009-07-10 17:31 ` Robert Millan
@ 2009-08-23 12:59 ` Robert Millan
  2009-08-23 13:22   ` Felix Zielcke
  2 siblings, 1 reply; 11+ messages in thread
From: Robert Millan @ 2009-08-23 12:59 UTC (permalink / raw)
  To: The development of GRUB 2; +Cc: Colin Watson


Looks like this one was forgotten.  I've committed it.

Btw, in the future please include ChangeLog entries when submitting patches.

On Wed, Jul 08, 2009 at 04:38:23PM +0100, Colin Watson wrote:
> Hi,
> 
> Some people seem to want to disable os-prober for various reasons (e.g.
> they have lots of test installations lying around that they don't
> normally want to get in the way, or they don't want installations on
> external drives to be included permanently in the boot menu, etc.). Now,
> they can just remove the os-prober package, but that doesn't really
> scale as other packages are allowed to depend on it too.
> 
> Perhaps we could have a configuration option for this? Patch attached.
> 
> Thanks,
> 
> -- 
> Colin Watson                                       [cjwatson@ubuntu.com]

> Index: util/grub.d/30_os-prober.in
> ===================================================================
> --- util/grub.d/30_os-prober.in	(revision 2402)
> +++ util/grub.d/30_os-prober.in	(working copy)
> @@ -22,6 +22,10 @@
>  
>  . ${libdir}/grub/grub-mkconfig_lib
>  
> +if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
> +  exit 0
> +fi
> +
>  if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
>    # missing os-prober and/or linux-boot-prober
>    exit 0

> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-08-23 12:59 ` Robert Millan
@ 2009-08-23 13:22   ` Felix Zielcke
  2009-08-23 14:31     ` Colin Watson
  0 siblings, 1 reply; 11+ messages in thread
From: Felix Zielcke @ 2009-08-23 13:22 UTC (permalink / raw)
  To: The development of GRUB 2

Am Sonntag, den 23.08.2009, 14:59 +0200 schrieb Robert Millan:
> Looks like this one was forgotten.  I've committed it.
> 
> Btw, in the future please include ChangeLog entries when submitting patches.
> 
> On Wed, Jul 08, 2009 at 04:38:23PM +0100, Colin Watson wrote:
> > Hi,
> > 
> > Some people seem to want to disable os-prober for various reasons (e.g.
> > they have lots of test installations lying around that they don't
> > normally want to get in the way, or they don't want installations on
> > external drives to be included permanently in the boot menu, etc.). Now,
> > they can just remove the os-prober package, but that doesn't really
> > scale as other packages are allowed to depend on it too.
> > 
> > Perhaps we could have a configuration option for this? Patch attached.
> > 
> > Thanks,
> > 
> > -- 
> > Colin Watson                                       [cjwatson@ubuntu.com]
> 
> > Index: util/grub.d/30_os-prober.in
> > ===================================================================
> > --- util/grub.d/30_os-prober.in	(revision 2402)
> > +++ util/grub.d/30_os-prober.in	(working copy)
> > @@ -22,6 +22,10 @@
> >  
> >  . ${libdir}/grub/grub-mkconfig_lib
> >  
> > +if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
> > +  exit 0
> > +fi
> > +
> >  if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
> >    # missing os-prober and/or linux-boot-prober
> >    exit 0
> 

Oh just noticed this now.
Doestn't grub-mkconfig need to export it so it's actually usable
in /etc/default/grub?

-- 
Felix Zielcke
Proud Debian Maintainer




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-08-23 13:22   ` Felix Zielcke
@ 2009-08-23 14:31     ` Colin Watson
  2009-08-23 15:09       ` Felix Zielcke
  0 siblings, 1 reply; 11+ messages in thread
From: Colin Watson @ 2009-08-23 14:31 UTC (permalink / raw)
  To: The development of GRUB 2

On Sun, Aug 23, 2009 at 03:22:41PM +0200, Felix Zielcke wrote:
> Doestn't grub-mkconfig need to export it so it's actually usable
> in /etc/default/grub?

Yes, that seems likely. Sorry about that.

2009-08-23  Colin Watson  <cjwatson@ubuntu.com>

	* util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.

Index: util/grub-mkconfig.in
===================================================================
--- util/grub-mkconfig.in	(revision 2514)
+++ util/grub-mkconfig.in	(working copy)
@@ -205,7 +205,8 @@
   GRUB_SERIAL_COMMAND \
   GRUB_DISABLE_LINUX_UUID \
   GRUB_DISABLE_LINUX_RECOVERY \
-  GRUB_GFXMODE
+  GRUB_GFXMODE \
+  GRUB_DISABLE_OS_PROBER
 
 if test "x${grub_cfg}" != "x"; then
   rm -f ${grub_cfg}.new

-- 
Colin Watson                                       [cjwatson@ubuntu.com]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration option to disable os-prober?
  2009-08-23 14:31     ` Colin Watson
@ 2009-08-23 15:09       ` Felix Zielcke
  0 siblings, 0 replies; 11+ messages in thread
From: Felix Zielcke @ 2009-08-23 15:09 UTC (permalink / raw)
  To: The development of GRUB 2

Am Sonntag, den 23.08.2009, 15:31 +0100 schrieb Colin Watson:
> On Sun, Aug 23, 2009 at 03:22:41PM +0200, Felix Zielcke wrote:
> > Doestn't grub-mkconfig need to export it so it's actually usable
> > in /etc/default/grub?
> 
> Yes, that seems likely. Sorry about that.
> 

Commited.

-- 
Felix Zielcke
Proud Debian Maintainer




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-08-23 15:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-08 15:38 Configuration option to disable os-prober? Colin Watson
2009-07-08 17:22 ` Pavel Roskin
2009-07-08 17:58   ` Isaac Dupree
2009-07-08 18:09     ` Pavel Roskin
2009-07-10 17:31 ` Robert Millan
2009-07-10 20:19   ` Colin Watson
2009-07-11 18:29     ` Robert Millan
2009-08-23 12:59 ` Robert Millan
2009-08-23 13:22   ` Felix Zielcke
2009-08-23 14:31     ` Colin Watson
2009-08-23 15:09       ` Felix Zielcke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.