Set encryption password for booting on OnePlus 5?
I was trying to do this too, but it seems like this is by design as seen at  oneplus forum.

Apparently nothing gets decrypted after boot until you enter your pin/pattern but it's still a bit disappointing if you want the phone to not even boot without authentication.