I'm using PXE to install ISO. There are two scripts for environment configuration, I want to added them in kickstart file, so the environment will be setup completely and automatically after the system installed.
However, my situation is:
- Script 1 must reboot (has been added in script1.sh)
- Script 2 depends on script 1
Here part of kickstart file:
...
...
%post
wget http://xxx/script1.sh
wget http://xxx/script2.sh
sh -x script1.sh | tee script1.log
sh -x script2.sh | tee script2.log
%end
So, is there anyway that script 2 can be executed after system reboot by using kickstart file? Or the other way, just executed the script 2 once after reboot.
Thanks.