Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 10-01-2010, 11:44 AM   #1
Glenn D.
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 128

Rep: Reputation: 16
How do I automaticall answer "y" to kernel .config questions on a remote build.

How do I automaticall answer "N" to kernel .config questions on a remote kernel build. It is remote so no keyboard input. Is there a parameter to automatically put a 'N' in for example.
Thanks Glenn
The line which triggers this is:
# make prepare -C  /BUILD/kernel-vanilla-  O=/BUILD/linux-obj

Below is a sample of the build log so far as it prompts for answer and aborts the build.

Control Group support (CGROUPS) [N/y/?] (NEW) aborted!

Console input/output is redirected. Run 'make oldconfig' to update configuration.

make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
make: *** [sub-make] Error 2
make: Leaving directory `/usr/src/packages/BUILD/kernel-vanilla-'
error: Bad exit status from /var/tmp/rpm-tmp.kduoFA (%prep)
Old 10-01-2010, 01:28 PM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,720

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
I think you're out of luck if you need 'make oldconfig'
If you can upload a new config, you can use make allmodconfig, for example.

But your question really is how do I configure a kernel with no input, and you don't. If you can ssh into the box and su or sudo, all is fine, you can do it with _your_ keyboard.
Old 10-01-2010, 11:29 PM   #3
Glenn D.
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 128

Original Poster
Rep: Reputation: 16
Thanks for the info.
I can see the result of the submitted job for example see [1].
I can edit configuration files and .specfile[2] then resubmit the job.

How could I pipe "n" to the line # make prepare $MAKE_ARG so it puts that answer in for say the next 40 times. The script I can change and upload.

[1] last logfile ->

[2] specfile ->
Old 10-04-2010, 04:03 AM   #4
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Rep: Reputation: 41
How about logging with ssh -X then "make menuconfig"? That way you can edit any setting then the .config file will be updated so you don't have to answer any yes or no questions.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to build APT: "configure: error: cannot run /bin/bash buildlib/config.sub" Kenny_Strawn Ubuntu 6 08-29-2010 06:06 PM
Installed SalixOS (Slack 13); how do I "build aufs and squashfs modules to kernel "?? linus72 Slackware 6 11-15-2009 04:57 AM
[Mandriva] Kernel Headers -- Why am I missing the "build" folder? nyle Linux - Newbie 3 12-07-2008 05:42 PM
Installed kernel-devel and source for i686; didn't create directory "build" itsonlyme Linux - Kernel 3 04-05-2007 10:08 AM
Questions on using the "base-config" program rhimbo Debian 1 01-10-2006 02:41 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration