LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



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

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


Hello.
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-2.6.34.7/linux-2.6.35  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-2.6.34.7/linux-2.6.35'
error: Bad exit status from /var/tmp/rpm-tmp.kduoFA (%prep)
 
Old 10-01-2010, 01:28 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,622

Rep: Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585
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.
Member
 
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 87

Original Poster
Rep: Reputation: 16
Hello.
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.
Glenn

[1] last logfile -> https://build.opensuse.org/package/l...=openSUSE_11.3

[2] specfile -> https://build.opensuse.org/package/v...a131845264e418
 
Old 10-04-2010, 04:03 AM   #4
archieval
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:48 AM.

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