Hello,
I have my own bash script and I want cobbler execute it after the
first reboot for my hosts. Current my cobbler release is
cobbler-2.4.0-beta3.el6.noarch.
If I were you, I would use the cobbler's built-in configuration
management feature, see
http://cobbler.github.com/manuals/2.4.0/5/3/1_-_Built-In_Configuration_Ma...
You can use it to copy your bash script to /etc/rc.d/init.d/firstboot
From there, what the script does should be under your control. The
script should be implemented in such a way that it erases itself upon
success (or at least makes itself non-executable).
FWIW, nowadays I tend to always provision minimal systems, and then
use a configuration management framework to do desired changes to
hosts in different categories. I used to use firstboot, but since
I adopted the aforementioned approach, I haven't had a need to use
a firstboot script anymore. Even for desktop installations, in
kickstart files, I turn off the firstboot option (which runs the
Setup Agent) as well.
Regards,
-- Zack
Could you please advice?
I appreciated your guidance for the best practice.
--------------------------
Best Wishes,
Waleed Harbi