0

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?

Thanks

ewwhite
  • 197,159
  • 92
  • 443
  • 809
Dima
  • 485
  • 3
  • 7
  • 15

2 Answers2

3

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.

Eduardo Ivanec
  • 14,881
  • 1
  • 37
  • 43
-2

yum install lm_sensors

yum install lm_sensors-sensord

sensors-detect

watch -d sensors

service sensord start

Then refer to http://linux.die.net/man/8/sensord