2014-08-25 12:59:47 +02:00
|
|
|
Index: util-linux/libmount/src/context_loopdev.c
|
|
|
|
===================================================================
|
|
|
|
--- util-linux.orig/libmount/src/context_loopdev.c
|
|
|
|
+++ util-linux/libmount/src/context_loopdev.c
|
|
|
|
@@ -212,6 +212,9 @@ int mnt_context_setup_loopdev(struct lib
|
2013-06-07 10:12:05 +02:00
|
|
|
if (rc == 0 && (cxt->user_mountflags & MNT_MS_ENCRYPTION) &&
|
|
|
|
mnt_optstr_get_option(optstr, "encryption", &val, &len) == 0) {
|
2014-08-25 12:59:47 +02:00
|
|
|
DBG(CXT, ul_debugobj(cxt, "encryption no longer supported"));
|
2013-06-07 10:12:05 +02:00
|
|
|
+ // XXX: nasty for the lib but there's on better way to give a hint atm
|
|
|
|
+ fprintf(stderr, "mount: encryption no longer supported.\n"
|
|
|
|
+ " Please use /etc/crypttab instead (man 5 crypttab)\n");
|
|
|
|
rc = -MNT_ERR_MOUNTOPT;
|
|
|
|
}
|
|
|
|
|