On Tue, Jun 8, 2010 at 2:26 PM, Jeremy Hansen <jeremy(a)skidrow.la> wrote:
On Jun 8, 2010, at 11:23 AM, mark wrote:
On Tue, Jun 8, 2010 at 2:11 PM, Jeremy Hansen <jeremy(a)skidrow.la> wrote:
>
> Sounds easier to just do a post install script within the kickstart or
> create a package that runs one time at first boot. I just figured that
> there was some way to access utilities installed on the host, such as
> ethtool, etc from within the reporting template in cobbler.
>
> -jeremy
>
>
>
Something I did to accomplish this was have a cobbler snippet for a custom
"firstboot" script, which can be made to run all sorts of validation checks
on what was config'd and how well the installation went.
mark
This works with the firstboot utility that comes with Red hat? I thought
about this but never looked into customizing firstboot. I'll have a look.
Thanks!
-jeremy
Yes. /usr/sbin/firstboot is just a python script. I have a snippet that
over-writes it with a shell script that does a df -k, netstat -rn, ifconfig
-a and some other basic diagnostic stuff. You also need to make sure in
your kickstart script on cobbler that you aren't disabling firstboot anymore
if you try this.
mark