Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about Bcachefs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1233

PostPosted: Mon May 13, 2024 2:52 pm    Post subject: Question about Bcachefs Reply with quote

Hi everyone, I think I did a post in a post about that, but because recently we have got the kernel 6.9, I wanted to make a fresh post.

I would like to know how I can do an installation with Bcachefs.

I ask that because to be honest, I am not 100% sure how to manage with this filesystem.

Because I got the point Bcachefs can be encrypted by default.

So I guess I don't need cryptsetup?

But how can I manage if for example I want everything encrypted in a single drive, with LVM?

I mean bcachefs provide lvm like functionality or not? I am not sure to understand how should I proceed...

Because usually, on my laptop, I have just one SSD called /dev/nvme0n1

nvme0n1p1 for /boot/efi (mounted in p2) FAT32
nvme0n1p2 for /boot (mounted in p3) BTRFS
nvme0n1p3 luks, with 2 lvm volume, one for swap, and one for root partition in BTRFS

But to do the equivalent with bcachefs I am a bit lost. I feel like I will need lvm anyway [/b]
_________________
My actual project: https://github.com/Fulgurance/ISM

Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 102

PostPosted: Sun May 19, 2024 10:24 am    Post subject: Reply with quote

If you want to keep your current partition scheme, you don't need LVM at all, no matter the file system. Just use a swap file instead of a dedicated partition or LV. bcachefs's built-in encryption is indeed not compatible with cryptsetup, because the latter is designed to work with dm-crypt. bcachefs-tools ships a script to automatically prompt for your password from an initramfs. (note that in its default form, it only works with plymouth)
Back to top
View user's profile Send private message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1233

PostPosted: Tue May 21, 2024 1:21 pm    Post subject: Reply with quote

I didn't think about that, good idea.

Just for my personal knowledge, if I need to have resizable partition, should I need LVM then, or bcachefs can handle that?

Another question as well, how can I know without downloading it if the last gentoo Iso have the minimal required kernel version for bcachefs (I mean the 6.7 one)? Because actually the Iso don't support that
_________________
My actual project: https://github.com/Fulgurance/ISM

Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 102

PostPosted: Wed May 22, 2024 6:38 am    Post subject: Reply with quote

According to the docs, bcachefs only supports growing partitions at the moment.

AFAIK, live ISOs are built from the latest packages keyworded stable. Since only LTS kernels are keyworded as such, the kernel on current live ISOs is most likely 6.6.x :( Using black magic, it might be possible to create a custom stage3 ISO, but I have no clue how to do that.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5117
Location: Bavaria

PostPosted: Wed May 22, 2024 12:57 pm    Post subject: Reply with quote

xgivolari wrote:
[...] it might be possible to create a custom stage3 ISO, but I have no clue how to do that.

@csfore did it: https://wiki.gentoo.org/wiki/User:Xarvatium/Bcachefs_rootfs
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1233

PostPosted: Tue May 28, 2024 5:12 pm    Post subject: Reply with quote

So I guess if I install from another iso, I can install Gentoo anyway, because I just need extract the stage 3 anyway
_________________
My actual project: https://github.com/Fulgurance/ISM

Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum