grub-btrfs icon indicating copy to clipboard operation
grub-btrfs copied to clipboard

/boot on a separate btrfs subvolume

Open as400l opened this issue 4 years ago • 2 comments

This is actually not an issue but rather a question or a possible improvement.

I have boot on a separate partition in a btrfs subvolume. Since my root is on a LUKS2 container there is no other way - boot has to be on a separate partition.

Now the question is - if I make a snapshot of the boot subvolume is there any way that I can use the snapshot for booting into the root snapshots that I have ?

as400l avatar Jul 30 '21 08:07 as400l

This is NOT true. You can boot from a LUKS2 partition. I'm going through the solution myself this week to implement BTRFS on LUKS2. The difference is that you can't use the default PBKDF algorithm in cryptsetup, but you have to override it with --pbkdf pbkdf2 commandline parameters when you luksFormat, and I'm testing to see how you would go about modifying an existing LUKS2 partition to make it work with Grub.

This solution will be incorporated in the following repo once completed:

https://gitlab.com/TheLinuxNinja/arch-install

TheLinuxNinja avatar Oct 28 '21 22:10 TheLinuxNinja

Maybe this post will help.

Hxppdv avatar Jan 29 '22 17:01 Hxppdv