This commit is contained in:
teldra 2022-08-05 15:47:32 +02:00
parent b6fc5b20b5
commit 3c4b087c26

View File

@ -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