Bcachefs: Difference between revisions

Onny (talk | contribs)
Auto decrypt and mount Bcache partition on boot
Onny (talk | contribs)
Line 208: Line 208:


=== Automatically mount encrypted device on boot ===
=== Automatically mount encrypted device on boot ===
Since the Bcachefs mount options do not support supplying a key file, we could use the <code>bcachefs</code> command and run it on boot using a [[Systemd]] unit:<syntaxhighlight lang="nix">
Since the Bcachefs mount options do [https://github.com/koverstreet/bcachefs-tools/pull/266 not support supplying a key file yet], we could use the <code>bcachefs</code> command and run it on boot using a [[Systemd]] unit:<syntaxhighlight lang="nix">
systemd.services."bcachefs-mount" = {
systemd.services."bcachefs-mount" = {
   after = [ "local-fs.target" ];
   after = [ "local-fs.target" ];