I've followed this blog post which details how to create a luks encrypted partition in a kickstart which works great to encrypt a partition.
The partition I'm attempting to encrypt should be mounted as
/var/lib which some of the packages I install in the
%packages section of my kickstart install into.
The issue that I'm having is that the encrypted partition does not appear to be mounted before the packages in the
%packages section are installed. This means that
/var/lib is being created (and installed into) under my root partition rather than my encrypted partition.
Is there any way to make sure the encrypted partition is mounted to
/var/lib before the packages are installed as part of the kickstart? What section should this happen in?