diff options
author | koverstreet <kent.overstreet@gmail.com> | 2018-11-04 17:42:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-04 17:42:04 -0500 |
commit | f420a809b44d1d41f2d6ce461f808224028edc51 (patch) | |
tree | d924ecfe97c362ed1340f380e562e4cf6c51e92f | |
parent | 19005ecf086b1067362d907c185298d3a43e67e4 (diff) | |
parent | b4cc119f666afdd0558b40bf508de85956507bf5 (diff) |
Merge pull request #9 from modelrockettier/master
Add chacha20 and poly1305 modules to initramfs
-rw-r--r-- | bcachefs.c | 5 | ||||
-rwxr-xr-x | initramfs/hook | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -194,6 +194,11 @@ int main(int argc, char *argv[]) if (!strcmp(cmd, "list")) return cmd_list(argc, argv); + if (!strcmp(cmd, "--help")) { + usage(); + return 0; + } + printf("Unknown command %s\n", cmd); usage(); exit(EXIT_FAILURE); diff --git a/initramfs/hook b/initramfs/hook index aa91469e..404a2499 100755 --- a/initramfs/hook +++ b/initramfs/hook @@ -16,3 +16,9 @@ esac . /usr/share/initramfs-tools/hook-functions +manual_add_modules 'bcachefs' + +# chacha20 and poly1305 are used for encrypted bcachefs filesystems. +add_loaded_modules 'chacha20[-_]*' +add_loaded_modules 'poly1305[-_]*' + |