View previous topic :: View next topic |
Author |
Message |
Fulgurance Veteran
Joined: 15 Feb 2017 Posts: 1233
|
Posted: Mon May 13, 2024 2:52 pm Post subject: Question about Bcachefs |
|
|
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 |
|
|
xgivolari Tux's lil' helper
Joined: 26 Jul 2021 Posts: 102
|
Posted: Sun May 19, 2024 10:24 am Post subject: |
|
|
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 |
|
|
Fulgurance Veteran
Joined: 15 Feb 2017 Posts: 1233
|
Posted: Tue May 21, 2024 1:21 pm Post subject: |
|
|
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 |
|
|
xgivolari Tux's lil' helper
Joined: 26 Jul 2021 Posts: 102
|
Posted: Wed May 22, 2024 6:38 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5117 Location: Bavaria
|
|
Back to top |
|
|
Fulgurance Veteran
Joined: 15 Feb 2017 Posts: 1233
|
Posted: Tue May 28, 2024 5:12 pm Post subject: |
|
|
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 |
|
|
|