Antynea / grub-btrfs

Include btrfs snapshots at boot options. (Grub menu)
GNU General Public License v3.0
683 stars 73 forks source link

Fedora 40: booting from root-subvolume fails #336

Open stefangweichinger opened 3 weeks ago

stefangweichinger commented 3 weeks ago

I am only starting to use this tool, so forgive me any FAQ here. Browsed the code and the issues and so far couldn't find a solution.

I set up grub-btrfs as instructed (I assume) on a laptop with Fedora 40. Snapshots are in place, the Makefile detects the snapshots and the config is generated.

When I simply want to boot into the plain root-subvolume (= not using a snapshot) it fails to detect the root-fs. As far as I see the part with "rootflags=subvol=root" is missing in grub.cfg, when I add that booting succeeds.

It seems to look for a subvolume "sysroot" while the subvolume is called "root" here.

When I try to boot a snapshots it fails with some error mentioning tpm. I will retry and add more details soon.

thanks for your work!

EDIT: I follow this and there's a fix for the tpm-issue. Testing.

stefangweichinger commented 5 days ago

I come back here because the issue still persists on 2 of my Fedora 40 systems. I wonder if I can configure (or have to) the part rootflags=subvol=root somewhere in the config of grub-btrfs?

stefangweichinger commented 4 days ago

I missed some steps in the howto .. proceeding, not 100% done yet. Wondering how to convert existing dirs like "~/.thunderbird" to subvolumes (it's not a fresh installation of Fedora).