Update util-base.sh

This commit is contained in:
Chrysostomus 2017-02-26 22:17:34 +08:00 committed by GitHub
parent 17d9e34691
commit 82b1e87948

View File

@ -122,7 +122,7 @@ boot_encrypted_setting()
if $(lsblk | grep '/mnt/boot' | grep -q 'crypt' ); then
echo "GRUB_ENABLE_CRYPTODISK=y" >> /mnt/etc/default/grub
# Check if root is encrypted and there is no separate /boot
elif $(lsblk | grep '/mnt' | grep -q 'crypt' ) && [[ $(lsblk | grep '/mnt/boot') == "" ]]; then
elif $(lsblk | grep "/mnt$" | grep -q 'crypt' ) && [[ $(lsblk | grep "/mnt/boot$") == "" ]]; then
echo "GRUB_ENABLE_CRYPTODISK=y" >> /mnt/etc/default/grub
else
true