More fixes

This commit is contained in:
Tad 2018-01-01 06:19:35 -05:00
parent 8a4f0bef72
commit d6148bb4df
2 changed files with 8 additions and 3 deletions

View file

@ -67,8 +67,10 @@ export -f enableZram;
enabledForcedEncryption() {
cd $base$1;
sed -i 's|encryptable=/|forceencrypt=/|' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
echo "Enabled forceencrypt for $1";
if [[ $1 != *"mako"* ]]; then #Forced encryption seems to prevent some devices from booting
sed -i 's|encryptable=/|forceencrypt=/|' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
echo "Enabled forceencrypt for $1";
fi;
cd $base;
}
export -f enabledForcedEncryption;