1
submitted 1 week ago by [email protected] to c/[email protected]

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
}
no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 20 Jul 2025
1 points (100.0% liked)

Linux

56554 readers
40 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS