when my computer starts before i see even my boot loader or grub or any menu Grub brings up a password prompt. If you want i can give you the exact prompt but it asks for a password however from what I’ve noticed it really doesn’t matter what i input - it always proceeds however, sometimes instead of bringing Opensuse’s grub menu it goes straight into a grub command line where i have to type exit to get out and then it takes me into bios. In the past it used to go into windows but i modified my OS boot priority in my UEFI to go to Opensuse and even set it as the fallback (rather than windows) but now i have this stupid login prompt that takes a solid 5 seconds do to anything and doesn’t care about what i type - then i have to deal with it sometimes flat out refusing to go into windows despite me exiting UEFI even after multiple times and i have to shutdown and hope it goes into Opensuse instead of a UEFI loop next time. Another thing to note is that, this time when i logged in Opensuse specifically asked for my password on my main btrfs partition (note my fat32 efi partition is not password protected) So could you guys help me out with:
Removing GRUB’s request for a password prompt
Reliably going into Opensuse rather than UEFI&or Windows
thnx
grub requests password for your encrypted root filesystem which contains /boot/grub2/grub.cfg file with grub configuration. It is not possible to (automatically) boot without this file so you must provide the correct password. When password is incorrect, grub will stop in CLI. Exiting grub goes back to EFI boot manager which should try the next boot entry. Now, this entry is not active (although boot manager is free to ignore it). It also points to the different partition. grub is on /dev/nvme0n1p1 and Windows boot entry points to /dev/nvme0n1p4. I have no idea whether it is correct, but if it boots into Windows it probably is.
Back to your questions.
You would need to move /boot to separate partition. It can be done, but you will lose snapshot rollback possibility.
You should reliably boot into openSUSE if you enter the correct LUKS2 password. You will need to enter password anyway, if not in grub then later in the boot sequence, so removing grub password prompt will not really change anything.
If you do not need encryption at all, it should be possible to decrypt in place. If you have TPM2 it is possible to store LUKS2 key in TPM2 for unattended decryption (but it has its own can of worms).
Alright. So if im correct by what your trying to imply the reason why this sometimes doesn’t work is because i enter my password incorrectly right? in that case cant i just skip to decrypt when opensuse is loading? rather than before that stage. Cause my windows partition isnt encrypted and i have to wait more time to get into windows just cause this thing wants a password
After i enter my password it goes into opensuses boot loader
^ this one
and here i’ll have the option to go into windows but i still gotta enter that password.
about moving that /boot to a separate partition. how would i go about doing that?
Create new partition, preferably on your boot device (to make sure grub can access it) and file system on it.
Move content of /boot to it except /boot/efi. It also includes /boot/grub2/x86_64-efi and /boot/grub2/i386-pc.
Adjust /etc/fstab, remount new partition as /boot(and of course remount/boot/efi` to the new mount point)
Run update-bootloader --reinit
You may be able to reuse /dev/nvme0n1p1 - 400MiB should be enough for a couple of kernels, but it is still tight. Check current space consumption on /boot. In this case just use /dev/nvme0n1p4 as /boot/efi. Otherwise you will need to resize some partition to get more space.