Bcachefs: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny Add note on encrypted filesystem installation |
||
Line 77: | Line 77: | ||
# mkfs.ext4 -L boot /dev/sda1 | # mkfs.ext4 -L boot /dev/sda1 | ||
# mkfs.bcachefs -L nixos /dev/sda2 | # mkfs.bcachefs -L nixos /dev/sda2 | ||
</syntaxhighlight> | |||
In case you want to enable filesystem encryption, there's a workaround for [https://github.com/NixOS/nixpkgs/issues/32279 a bug] affecting NixOS 22.11. Formatting and unlocking the encrypted partition would look like this | |||
<syntaxhighlight lang="console"> | |||
# nix-env -iA nixos.keyutils | |||
# keyctl link @u @s | |||
# bcachefs format --encrypt /dev/sda2 | |||
# bcachefs unlock /dev/sda2 | |||
</syntaxhighlight> | </syntaxhighlight> | ||