diff --git a/etc/bootloader/grub b/etc/bootloader/grub index 2ed2016..e6af99e 100644 --- a/etc/bootloader/grub +++ b/etc/bootloader/grub @@ -7,9 +7,11 @@ packages() { } config() { - if [ "${ENC}" == "1" ] && ! [ "${ENCRYPTION_STYLE}" == "e" ]; then - if ! grep -q "GRUB_ENABLE_CRYPTODISK" /etc/default/grub; then - echo "GRUB_ENABLE_CRYPTODISK=y" >> /etc/default/grub + if [ "${ENC}" == "1" ]; then + if ! [ "${ENCRYPTION_STYLE}" == "e" ]; then + if ! grep -q "GRUB_ENABLE_CRYPTODISK" /etc/default/grub; then + echo "GRUB_ENABLE_CRYPTODISK=y" >> /etc/default/grub + fi fi uuid=$(blkid -o value -s UUID ${TARGET_PHY_ID}-part${TARGET_PART}) if ! grep -q rd.luks.uuid /etc/default/grub; then