[RHEL 8] When using kickstart with "%post --erroronfail" during the post script failure cause the installed system to boot with readonly root filesystem ?

Solution Verified - Updated -


There are cases during Kickstart builds where exit 1 is desired during the post-install script on certain failures. When used in conjunction with %post --erroronfail

  • In RHEL 7, the build will fail (as desired) and if we choose to reboot the host, it will come online as normal so that we can investigate.

  • In RHEL 8, if the post-install script fails, then when the host reboots, the filesystems do not mount. Only the root filesystem is mounted and it's read-only.


  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In