How to install macOS on a encrypted, journaled filesystem? I just wiped my 500GB disk on my Mac Mini (2011 model) to freshly reinstall macOS Sierra.

I restarted the system, pressed CMD+R to get into recovery mode and went into disk utility.
I erased the macOS partition and formatted it with journaled and encrypted file-system. Picked a password, and good.
I quit the disk utility and selected 'Install macOS'.

This told me it will check eligibility of my device and due to my encrypted disk it will ask for the password during installation. And it did. I entered the password and the process continued until at some point it aborted with the following message:

macOS could not be installed on your computer.
Storage system verify or repair failed.

Now my only option is reboot and remove the encryption via disk utility. I was not able to install macOS onto a fully encrypted disk. Is this desired behaviour? How to install macOS on a encrypted, journaled file-system?
I'm usually installing my Linux systems on fully encrypted disks, thus I am wondering whether this is also possible with macOS Sierra.
I know you have a working answer already, but I thought to share my experience anyway, only updated for High Sierra and using Apple's new file system APFS.

My motivation: I was driven by the (constantly varying) 6-14 hour estimate for FileVault to finish on a new install with no additional user data.

So this is what I did to install macOS on an already-encrypted filesystem - much like yours:


Create a bootable macOS installer
Erase and format as APFS (Encrypted)
Install High Sierra


Pros:


&lt; 10 mins to encrypt by Disk Utility? (possibly less, I didn't monitor closely)
FileVault already enabled.


One main difference is that you supply a password earlier when formatting with Disk Utility, rather than being given one (the Recovery Key) when enabling FileVault post-install.

Hope this helps someone.