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?

  • ...why not just use partition --encrypted --passphrase PASS [etc.] /var/lib, as per the Kickstart documentation? – wwoods Jun 27 '17 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.