Bcachefs: Difference between revisions
Auto decrypt and mount Bcache partition on boot |
|||
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" ]; |