Bcachefs: Difference between revisions
→NixOS installation on bcachefs: Cleanup instruction |
|||
| Line 167: | Line 167: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# mkfs.fat -F 32 -n boot /dev/sda1 | # mkfs.fat -F 32 -n boot /dev/sda1 | ||
# mkfs.bcachefs -L nixos /dev/sda2 | # mkfs.bcachefs -L nixos /dev/sda2 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 174: | Line 173: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# | # keyctl link @u @s | ||
# | # bcachefs format --label=nixos --encrypted /dev/sda2 | ||
# bcachefs unlock /dev/sda2 | # bcachefs unlock /dev/sda2 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Mount filesystems | Mount filesystems. Use <code>lsblk -o +uuid,fsType | grep bcachefs</code> to get bcachefs partition uuid. | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# mount /dev/ | # mount /dev/disk/by-uuid/<...> /mnt | ||
# mkdir /mnt/boot | # mkdir /mnt/boot | ||
# mount /dev/disk/by-label/boot /mnt/boot | # mount /dev/disk/by-label/boot /mnt/boot | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Continue installation as recommended by the [https://nixos.org/manual/nixos/stable/index.html#ch-installation NixOS manual]. | Continue installation as recommended by the [https://nixos.org/manual/nixos/stable/index.html#ch-installation NixOS manual]. | ||