Initramfs support for root on encrypted bcachefs
Added 2018-02-11 19:32:56 +0000 UTCI just pushed initrams hooks/scripts for handling a bcachefs encrypted root filesystem - after you make install in bcachefs-tools, they'll be picked up next time you generate an initramfs, and if your root filesystem is encrypted you'll be promted for the passphrase to unlock it when booting up.
I've only tested it on debian. It could also be prettier, too - patches welcome.
Comments
It's a clean slate design: <a href="https://bcachefs.org/Encryption/" rel="nofollow noopener" target="_blank">https://bcachefs.org/Encryption/</a>
Kent Overstreet
2018-02-12 17:52:19 +0000 UTCWhat is that based on ? Encfs ?
veritanuda
2018-02-12 17:47:46 +0000 UTCThat's a good point. Want to submit a patch?
Kent Overstreet
2018-02-12 16:47:11 +0000 UTCAre you referring to this commit <a href="https://evilpiepirate.org/git/bcachefs-tools.git/commit/initramfs?id=813862a47ca866082ca3002441df6c13b47f1b0d" rel="nofollow noopener" target="_blank">https://evilpiepirate.org/git/bcachefs-tools.git/commit/initramfs?id=813862a47ca866082ca3002441df6c13b47f1b0d</a> ? I notice that you're doing an infinite loop until successful there. Most of initramfs limits the amount of retries to make sure that, after some (or a lot of) time, you can get a root shell to fix any problems. You're unconditional infinite loop (apparently) breaks that.
2018-02-12 13:21:00 +0000 UTC:D
2018-02-11 22:43:21 +0000 UTCHave been for awhile...
Kent Overstreet
2018-02-11 22:17:08 +0000 UTCDoes this mean you are starting to lay the groundwork for upstreaming bcachefs?
2018-02-11 21:38:34 +0000 UTCwow, badass!
2018-02-11 20:17:57 +0000 UTCNative bcachefs encryption
Kent Overstreet
2018-02-11 20:16:36 +0000 UTC