Encrypting /boot without encrypting root
I want to have an encrypted boot partition work with an unencrypted root partition. I use btrfs and saw that file system encryption would be available soon, so I want to use that instead of LUKS encryption. Is this possible?
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- aeug3m
35 comments
…but why?
Native file system encryption is much faster than luks or dm-crypt. Ext4 and f2fs already have support for encryption, so I could just apply the method for setting up ext4 or &2fs to btrfs. Since boot is a separate partition with ext2 formatting, I encrypted that with luks.
It's much less secure, and not that much faster. But anyway…
…but why?
LUKs is faster:
https://www.phoronix.com/scan.php?page=article&item=ext4-crypto-418
Threat model?
Maybe put /boot on its own device (USB thumb drive)
Root will be encrypted with the upcoming btrfs file system encryption feature. I’m reinstalling arch now, so I’m leaving root unencrypted for the time being. Is it possible to have unencrypted boot on a thumb drive? I guess that’d be a workaround, but I format my thumb drive a lot, so not ideal.
Again, what is your threat model?
Because chances are good that encrypting /boot is not what you want to do. 99% of the time, you want to authenticate it.
I do have /boot on a thumb drive, unencrypted. Solves my threat model
Deleted before we saved it.
File system encryption is *newer * than plain old luks or dm-crypt. I’m not entirely sold, but the reasoning behind google developing fscrypt for their android devices to allow encryption without dm-crypt is interesting. Also phoronix released benchmarks showing significant improvements for server tasks.
GRUB supports booting from btrfs. Why do you need a separate boot partition?
Zstd file compression. Just had this problem - I set up a boot sub volume with lzo compression. Unable to use the crypto disk feature of grub like this. So, i thought, since I need a separate boot partition anyway, why not leave root unencrypted until I can set up btrfs file system encryption.
Grub doesn't actually look at the incompat flag, just having
/boot/be uncompressed or compressed with Zlib/lzo is bootable with GRUB.