public inbox for gentoo-kernel@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
@ 2007-06-15 13:35 Arne Stäcker
  2007-06-15 15:46 ` Daniel Gryniewicz
  2007-06-15 19:35 ` Sam Ravnborg
  0 siblings, 2 replies; 13+ messages in thread
From: Arne Stäcker @ 2007-06-15 13:35 UTC (permalink / raw
  To: gentoo-kernel

Hi,
I don't know if this the right mailing list, but I give it a try.

I'm writing a software to manage the upgrading, rebuild, uninstallation of the 
linux kernel.

Now, what I need is a non-interactive 'make oldconfig' like genkernel does it. 
I looked at the code, but couldn't find the right line. Can anyone tell me at 
which files and lines I have to look for this feature. Thanks.

regards
 Arne
-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 13:35 [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig' Arne Stäcker
@ 2007-06-15 15:46 ` Daniel Gryniewicz
  2007-06-15 15:57   ` Arne Stäcker
  2007-06-15 19:35 ` Sam Ravnborg
  1 sibling, 1 reply; 13+ messages in thread
From: Daniel Gryniewicz @ 2007-06-15 15:46 UTC (permalink / raw
  To: gentoo-kernel

On Fri, 2007-06-15 at 15:35 +0200, Arne Stäcker wrote:
> Hi,
> I don't know if this the right mailing list, but I give it a try.
> 
> I'm writing a software to manage the upgrading, rebuild, uninstallation of the 
> linux kernel.
> 
> Now, what I need is a non-interactive 'make oldconfig' like genkernel does it. 
> I looked at the code, but couldn't find the right line. Can anyone tell me at 
> which files and lines I have to look for this feature. Thanks.
> 
> regards
>  Arne

I think you want make silentoldconfig

Daniel

-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 15:46 ` Daniel Gryniewicz
@ 2007-06-15 15:57   ` Arne Stäcker
  0 siblings, 0 replies; 13+ messages in thread
From: Arne Stäcker @ 2007-06-15 15:57 UTC (permalink / raw
  To: gentoo-kernel

Am Freitag, 15. Juni 2007 schrieb Daniel Gryniewicz:
> I think you want make silentoldconfig
>
> Daniel
No, 'make silentoldconfig' just suppresses the already answered (by the old 
config) options. It still prompt for new options.

Arne

-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 13:35 [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig' Arne Stäcker
  2007-06-15 15:46 ` Daniel Gryniewicz
@ 2007-06-15 19:35 ` Sam Ravnborg
  2007-06-15 21:05   ` Greg KH
  2007-06-15 21:22   ` Arne Stäcker
  1 sibling, 2 replies; 13+ messages in thread
From: Sam Ravnborg @ 2007-06-15 19:35 UTC (permalink / raw
  To: gentoo-kernel

On Fri, Jun 15, 2007 at 03:35:31PM +0200, Arne Stäcker wrote:
> Hi,
> I don't know if this the right mailing list, but I give it a try.
> 
> I'm writing a software to manage the upgrading, rebuild, uninstallation of the 
> linux kernel.
> 
> Now, what I need is a non-interactive 'make oldconfig' like genkernel does it. 
> I looked at the code, but couldn't find the right line. Can anyone tell me at 
> which files and lines I have to look for this feature. Thanks.

try:
echo y | make oldconfig

	Sam
-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 19:35 ` Sam Ravnborg
@ 2007-06-15 21:05   ` Greg KH
  2007-06-15 21:25     ` Arne Stäcker
  2007-06-15 21:29     ` Mike Doty
  2007-06-15 21:22   ` Arne Stäcker
  1 sibling, 2 replies; 13+ messages in thread
From: Greg KH @ 2007-06-15 21:05 UTC (permalink / raw
  To: gentoo-kernel

On Fri, Jun 15, 2007 at 09:35:30PM +0200, Sam Ravnborg wrote:
> On Fri, Jun 15, 2007 at 03:35:31PM +0200, Arne St?cker wrote:
> > Hi,
> > I don't know if this the right mailing list, but I give it a try.
> > 
> > I'm writing a software to manage the upgrading, rebuild, uninstallation of the 
> > linux kernel.
> > 
> > Now, what I need is a non-interactive 'make oldconfig' like genkernel does it. 
> > I looked at the code, but couldn't find the right line. Can anyone tell me at 
> > which files and lines I have to look for this feature. Thanks.
> 
> try:
> echo y | make oldconfig

That's not really safe.  You want to use the defaults, which is what I
think 'silentoldconfig' does.  You really don't want to enable an option
like "Add self-destruct mode" to the kernel if it is newly present :)

thanks,

greg k-h
-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 19:35 ` Sam Ravnborg
  2007-06-15 21:05   ` Greg KH
@ 2007-06-15 21:22   ` Arne Stäcker
  1 sibling, 0 replies; 13+ messages in thread
From: Arne Stäcker @ 2007-06-15 21:22 UTC (permalink / raw
  To: gentoo-kernel

Am Freitag, 15. Juni 2007 schrieb Sam Ravnborg:
> try:
> echo y | make oldconfig
>
> 	Sam
Great. Works like a charm.
Thanks.

 Arne


-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 21:05   ` Greg KH
@ 2007-06-15 21:25     ` Arne Stäcker
  2007-06-15 21:39       ` Ryan Sims
  2007-06-15 21:41       ` Greg KH
  2007-06-15 21:29     ` Mike Doty
  1 sibling, 2 replies; 13+ messages in thread
From: Arne Stäcker @ 2007-06-15 21:25 UTC (permalink / raw
  To: gentoo-kernel

Am Freitag, 15. Juni 2007 schrieb Greg KH:
> That's not really safe.  You want to use the defaults, which is what I
> think 'silentoldconfig' does.  You really don't want to enable an option
> like "Add self-destruct mode" to the kernel if it is newly present :)
>
> thanks,
>
> greg k-h
Good point. I will then use "echo n | make oldconfig" by default.

 Arne

-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 21:05   ` Greg KH
  2007-06-15 21:25     ` Arne Stäcker
@ 2007-06-15 21:29     ` Mike Doty
  1 sibling, 0 replies; 13+ messages in thread
From: Mike Doty @ 2007-06-15 21:29 UTC (permalink / raw
  To: gentoo-kernel

Greg KH wrote:
> On Fri, Jun 15, 2007 at 09:35:30PM +0200, Sam Ravnborg wrote:
>> On Fri, Jun 15, 2007 at 03:35:31PM +0200, Arne St?cker wrote:
>>> Hi,
>>> I don't know if this the right mailing list, but I give it a try.
>>>
>>> I'm writing a software to manage the upgrading, rebuild, uninstallation of the 
>>> linux kernel.
>>>
>>> Now, what I need is a non-interactive 'make oldconfig' like genkernel does it. 
>>> I looked at the code, but couldn't find the right line. Can anyone tell me at 
>>> which files and lines I have to look for this feature. Thanks.
>> try:
>> echo y | make oldconfig
> 
> That's not really safe.  You want to use the defaults, which is what I
> think 'silentoldconfig' does.  You really don't want to enable an option
> like "Add self-destruct mode" to the kernel if it is newly present :)
Where's the fun in that!!

--taco
-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 21:25     ` Arne Stäcker
@ 2007-06-15 21:39       ` Ryan Sims
  2007-06-15 21:46         ` Brian.D.Botton
  2007-06-15 21:41       ` Greg KH
  1 sibling, 1 reply; 13+ messages in thread
From: Ryan Sims @ 2007-06-15 21:39 UTC (permalink / raw
  To: gentoo-kernel

On 6/15/07, Arne Stäcker <arnestaecker@web.de> wrote:
> Am Freitag, 15. Juni 2007 schrieb Greg KH:
> > That's not really safe.  You want to use the defaults, which is what I
> > think 'silentoldconfig' does.  You really don't want to enable an option
> > like "Add self-destruct mode" to the kernel if it is newly present :)
> >
> > thanks,
> >
> > greg k-h
> Good point. I will then use "echo n | make oldconfig" by default.

I'm not sure that really removes the danger.  What if they split out a
driver you need into some other config option?  If there's a way to
echo a newline to all the questions, that would at least accept the
defaults.

Pardon me for being reactionary, but does "non-interactive kernel
configuration" give anyone else the cold sweats?

-- 
Ryan W Sims
--
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 21:25     ` Arne Stäcker
  2007-06-15 21:39       ` Ryan Sims
@ 2007-06-15 21:41       ` Greg KH
  2007-06-16  6:40         ` Arne Stäcker
  1 sibling, 1 reply; 13+ messages in thread
From: Greg KH @ 2007-06-15 21:41 UTC (permalink / raw
  To: gentoo-kernel

On Fri, Jun 15, 2007 at 11:25:17PM +0200, Arne St?cker wrote:
> Am Freitag, 15. Juni 2007 schrieb Greg KH:
> > That's not really safe.  You want to use the defaults, which is what I
> > think 'silentoldconfig' does.  You really don't want to enable an option
> > like "Add self-destruct mode" to the kernel if it is newly present :)
> >
> > thanks,
> >
> > greg k-h
> Good point. I will then use "echo n | make oldconfig" by default.

Are you sure you want that too?  What if there's the new "Make
your box run twice as fast" option?  You need to pick the default option
value, which I'm pretty sure that 'silentoldconfig' does.

So please use that one to get things "correct".

thanks,

greg k-h
-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 21:39       ` Ryan Sims
@ 2007-06-15 21:46         ` Brian.D.Botton
  0 siblings, 0 replies; 13+ messages in thread
From: Brian.D.Botton @ 2007-06-15 21:46 UTC (permalink / raw
  To: gentoo-kernel



"Ryan Sims" <rwsims@gmail.com> wrote on 06/15/2007 03:39:38 PM:

> On 6/15/07, Arne Stäcker <arnestaecker@web.de> wrote:
> > Am Freitag, 15. Juni 2007 schrieb Greg KH:
> > > That's not really safe.  You want to use the defaults, which is what
I
> > > think 'silentoldconfig' does.  You really don't want to enable an
option
> > > like "Add self-destruct mode" to the kernel if it is newly present :)
> > >
> > > thanks,
> > >
> > > greg k-h
> > Good point. I will then use "echo n | make oldconfig" by default.
>
> I'm not sure that really removes the danger.  What if they split out a
> driver you need into some other config option?  If there's a way to
> echo a newline to all the questions, that would at least accept the
> defaults.
>
> Pardon me for being reactionary, but does "non-interactive kernel
> configuration" give anyone else the cold sweats?
>

  I got bit by this exact issue. Don't do it. Run it by hand and
figure out what you need to do. It isn't that hard and you should
keep up with the changes anyway.

Brian

--
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
@ 2007-06-15 22:58 Master Control Program
  0 siblings, 0 replies; 13+ messages in thread
From: Master Control Program @ 2007-06-15 22:58 UTC (permalink / raw
  To: gentoo-kernel

"Ryan Sims" <rwsims@gmail.com> wrote on 06/15/2007 03:39:38 PM:

> On 6/15/07, Arne St=E4cker <arnestaecker@web.de> wrote:
> > Am Freitag, 15. Juni 2007 schrieb Greg KH:
> > > That's not really safe.  You want to use the defaults, which is w=
hat
I
> > > think 'silentoldconfig' does.  You really don't want to enable an=

option
> > > like "Add self-destruct mode" to the kernel if it is newly presen=
t :)
> > >
> > > thanks,
> > >
> > > greg k-h
> > Good point. I will then use "echo n | make oldconfig" by default.
>
> I'm not sure that really removes the danger.  What if they split out =
a
> driver you need into some other config option?  If there's a way to
> echo a newline to all the questions, that would at least accept the
> defaults.
>
> Pardon me for being reactionary, but does "non-interactive kernel
> configuration" give anyone else the cold sweats?
>

Yep, shot myself in the foot when SATA options appeared in the kernel 
and there was no boot device.






End of line.
-- 
gentoo-kernel@gentoo.org mailing list



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

* Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig'
  2007-06-15 21:41       ` Greg KH
@ 2007-06-16  6:40         ` Arne Stäcker
  0 siblings, 0 replies; 13+ messages in thread
From: Arne Stäcker @ 2007-06-16  6:40 UTC (permalink / raw
  To: gentoo-kernel

Am Freitag, 15. Juni 2007 schrieb Greg KH:
> Are you sure you want that too?  What if there's the new "Make
> your box run twice as fast" option?  You need to pick the default option
> value, which I'm pretty sure that 'silentoldconfig' does.
>
> So please use that one to get things "correct".
>
> thanks,
>
> greg k-h
Ok, then 'echo | make oldconfig'.
And 'make silentoldconfig' it is still interactive. It doesn't show the old 
options, but prompts for the ehe new ones.

 Arne
-- 
gentoo-kernel@gentoo.org mailing list



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

end of thread, other threads:[~2007-06-16  6:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-15 13:35 [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig' Arne Stäcker
2007-06-15 15:46 ` Daniel Gryniewicz
2007-06-15 15:57   ` Arne Stäcker
2007-06-15 19:35 ` Sam Ravnborg
2007-06-15 21:05   ` Greg KH
2007-06-15 21:25     ` Arne Stäcker
2007-06-15 21:39       ` Ryan Sims
2007-06-15 21:46         ` Brian.D.Botton
2007-06-15 21:41       ` Greg KH
2007-06-16  6:40         ` Arne Stäcker
2007-06-15 21:29     ` Mike Doty
2007-06-15 21:22   ` Arne Stäcker
  -- strict thread matches above, loose matches on Subject: below --
2007-06-15 22:58 Master Control Program

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox