Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install CentOS 5 server using kickstart installation. As part of the installation, I need to install lm_sensors package. When I'm installing lm_sensors manually, I'm running sensors-detect command. But this command is requires an interaction with user.

What I need to do in order to make fully automatic CentOS installation with lm_sensors?


share|improve this question
up vote 3 down vote accepted

I think you can use a %post script for this:

%post --log=/root/sensors-detect.log
yes | sensors-detect

This thread at the lm-sensors mail list discusses this very issue. Piping yes seems to work, although it may not be the cleanest option.

share|improve this answer

yum install lm_sensors

yum install lm_sensors-sensord


watch -d sensors

service sensord start

Then refer to

share|improve this answer – chicks Oct 29 '15 at 1:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.