References
Pre-Installation Script
The important bits:
- The pre-install script is not run in the change root environment.
-
You can access the network in the
%pre
section; however, name service has not been configured at this point, so only IP addresses work.
Post-Installation Script
The important bits:
- If you configured the network with static IP information, including a nameserver, you can access the network and resolve IP addresses in the
%post
section. If you configured the network for DHCP, the/etc/resolv.conf
file has not been completed when the installation executes the%post
section. You can access the network, but you can not resolve IP addresses. Thus, if you are using DHCP, you must specify IP addresses in the%post
section -
The post-install script is run in a chroot environment; therefore, performing tasks such as copying scripts or RPMs from the installation media do not work.