From 3c4b087c26776f09ce5aa79be1879c502ece5bf4 Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 5 Aug 2022 15:47:32 +0200 Subject: [PATCH] new --- etc/bootloader/grub | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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