1
Hello, i have problem because i can't make it work for like a week. I tried a lot of different configurations and every time i try refind with encryption when refind starts there is no menu entry for encryptred disk, but with no encryption everything works fine. I looked a lot on arch wiki, some install scripts on github and i do what they do and it doesn't work. Maybe anyone could help?
Script i actually use:
execute_refind() {
BLKID1=$(blkid -s UUID -o value $ROOT)
BLKID2=$(blkid -s UUID -o value $CRYPT)
refind-install --usedefault "$ESP" --alldrivers
touch /boot/refind_linux.conf
if [ "$ENCRYPTION" == "yes" ] && [ "$FILESYSTEM" == "btrfs" ]
then
cat >> /boot/refind_linux.conf << EOF
"Boot with minimal options" "rd.luks.name=$BLKID2=artix root=UUID=$BLKID2 rootfstype=$FILESYSTEM rw add_efi_memmap quiet $NVIDIA_MODESET"
EOF
fi
if [ "$ENCRYPTION" == "no" ] && [ "$FILESYSTEM" == "btrfs" ]
then
cat >> /boot/refind_linux.conf << EOF
"Boot with minimal options" "rootflags=subvol=/@ root=UUID=$BLKID1 rw add_efi_memmap rootfstype=$FILESYSTEM initrd=@\boot\booster-$KERNEL.img quiet $NVIDIA_MODESET"
EOF
fi
if [ "$ENCRYPTION" == "yes" ] && [ "$FILESYSTEM" != "btrfs" ]
then
cat >> /boot/refind_linux.conf << EOF
"Boot with minimal options" "rd.luks.name=$BLKID2=artix root=UUID=$BLKID2 rootfstype=$FILESYSTEM rw add_efi_memmap quiet $NVIDIA_MODESET"
EOF
fi
if [ "$ENCRYPTION" == "no" ] && [ "$FILESYSTEM" != "btrfs" ]
then
cat >> /boot/refind_linux.conf << EOF
"Boot with minimal options" "root=UUID=$BLKID1 rw add_efi_memmap rootfstype=$FILESYSTEM quiet $NVIDIA_MODESET"
EOF
fi
execute_modules
}