CHROMIUM: Simplify ext4 encryption support detection

We can detect if the kernel supports ext4 encryption by checking if
/sys/fs/ext4/features/encryption exists. This is more reliable than
opening the root file system and trying to read the encryption policy.

BUG=chromium:1019939
TEST="Boot and log in"

Reviewed-on: https://chromium-review.googlesource.com/1895721
Change-Id: I2936e1ab7771aebe4980f86953207bd379b5c2ab
1 file changed