Post by tripialos » Tue Aug 20, pm. Privacy Terms. Quick links. Any ideas? Isnt it that weird? Note that the path of the log file must take into account whether or not you use the --nochroot option. For example, without --nochroot :. For an example of a post-installation script, see Section A. Here will we discuss post install scripts exclusively. Pre and post install scripts are special section of ks. These sections get extracted into separate files and executed at build time. For example:.
Your main limitation is the tools available at the time the scripts are run, though: a preinstall script executes in the realm of the boot media, which includes just a limited toolset for rescue operations. The postinstall script runs chrooted inside the freshly installed OS. It therefore has access to any tools you installed on the target machine.
If your OS build included Perl or Python, then, your postinstall script could run code in those languages. In this case, your postinstall script will have the same limited toolset as the preinstall script, but you then have the option of performing some other activities and manually invoking chroot to work inside the chroot area. Postinstall scripts can perform tasks you want to handle each and every time after the install but before the machine reboots into full-user mode.
So, let me know your suggestions and feedback using the comment section. If my articles on GoLinuxCloud has helped you, kindly consider buying me a coffee as a token of appreciation.
For any other feedbacks or questions you can either use the comments section or contact me form.
0コメント