我一直在 CentOS 上使用 Kickstart 设置机器,但我不确定kickstart文件的%pre
和%post
部分之间的区别.cfg
。
预安装脚本的 CentOS 文档指出:
You can add commands to run on the system immediately after the ks.cfg has been parsed.
Run Code Online (Sandbox Code Playgroud)
虽然安装后脚本的部分指出:
You have the option of adding commands to run on the system once the installation is complete.
Run Code Online (Sandbox Code Playgroud)
在阅读了这个问题之后,我注意到该%pre
部分似乎无法以某种方式访问文件系统。
我的问题是:
%pre
和%post
部分有什么区别?%pre
部分是否与 kickstart 脚本同时运行(解析后)?%pre
在 kickstart 脚本部分是否有可用的持久存储?