Skip to content

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?

0 points33 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
aeug3m

Author

12
posts
128
comments
0
media
View profile

35 comments

…but why?

24 points

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.

-1 points

Native file system encryption is much faster than luks or dm-crypt

It's much less secure, and not that much faster. But anyway…

ext2 on boot

…but why?

16 points

Threat model?

Maybe put /boot on its own device (USB thumb drive)

6 points

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.

-1 points

I do have /boot on a thumb drive, unencrypted. Solves my threat model

3 points
unknown author1 hidden

Deleted before we saved it.

2 points

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.

1 points

GRUB supports booting from btrfs. Why do you need a separate boot partition?

1 points

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.

1 points

Grub doesn't actually look at the incompat flag, just having /boot/ be uncompressed or compressed with Zlib/lzo is bootable with GRUB.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.