From 5ecc6b3a5cd1f6cbda54b2a176a0bdbc47d2f0de Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (CosmicFusion)" Date: Fri, 29 Nov 2024 16:39:16 +0100 Subject: [PATCH] Update debian/booster.postinst --- debian/booster.postinst | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/debian/booster.postinst b/debian/booster.postinst index 12bd2f7..e7bd06b 100644 --- a/debian/booster.postinst +++ b/debian/booster.postinst @@ -11,26 +11,6 @@ else echo "KEYMAP="us"" >> /etc/vconsole.conf fi -# Check if there are entries in crypttab -crypt_check=$(cat /etc/crypttab | grep -v '^#' || true) -if [[ -n $crypt_check ]] -then - # Use the first crypttab entry as luks for booster (valid for calamares and probably most installers) - if cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f2 | grep -i "UUID=" - then - # Check if luks is already configured in refind - if cat /boot/refind_linux.conf | grep -i 'rd.luks' - then - true - else - sed -i "s#root=#rd.luks.name="$(cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f2 | sed "s#UUID=##")"="$(cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f1)" root=#" /boot/refind_linux.conf - fi - else - echo -e "ERROR 1: /etc/crypttab is invalid!\nFirst crypttab entry (presumed to be root luks) is not defined via UUID\nPlease make sure to define luks for root as the first entry in /etc/crypttab via UUID (use blkid)" - exit 1 - fi -fi - # Add nvidia support if an nvidia card is detected if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia && lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i -E 'kernel modules|kernel driver' | grep -i nvidia then