home: hub: mkinitfs

Download patch

ref: d6a68123b9cd3c751ee45a376b01d1b164c0ab5b
parent: a7f9fc14390fc1e995ae47ba9634b86d5922dbf7
author: Sören Tempel <soeren+git@soeren-tempel.net>
date: Fri Jan 19 18:50:15 CST 2018

nlplug-findfs: add primitive support for LUKS2 containers

Since we previously specified an explicit request_type for the
crypt_load() function nlplug-findfs couldn't open LUKS2 containers. By
using CRYPT_LUKS crypt_load accepts any known LUKUS container format.

We could add an additional command line flag to nlplug-finds for
specifying the request_type but I guess this is good enough for now.

--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -582,7 +582,7 @@
 		goto notify_out;
 	}
 
-	r = crypt_load(cd, CRYPT_LUKS1, params);
+	r = crypt_load(cd, CRYPT_LUKS, params);
 	if (r < 0) {
 		warnx("crypt_load(%s)", data_devnode);
 		goto free_out;