LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How do I automaticall answer "y" to kernel .config questions on a remote build. (https://www.linuxquestions.org/questions/linux-kernel-70/how-do-i-automaticall-answer-y-to-kernel-config-questions-on-a-remote-build-835651/)

Glenn D. 10-01-2010 10:44 AM

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)

business_kid 10-01-2010 12:28 PM

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.

Glenn D. 10-01-2010 10:29 PM

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

archieval 10-04-2010 03:03 AM

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.


All times are GMT -5. The time now is 09:44 AM.