chiark / gitweb /
timedated: remove left-over distribution specific code
[elogind.git] / src / cryptsetup / cryptsetup.c
index e8ba3f02a3060e5fe60b36cb049e89fdfe130033..f33284370c0d7c3d588116198abe30ac67cb7d77 100644 (file)
@@ -62,7 +62,7 @@ static int parse_one_option(const char *option) {
         assert(option);
 
         /* Handled outside of this tool */
-        if (streq(option, "noauto"))
+        if (streq(option, "noauto") || streq(option, "nofail"))
                 return 0;
 
         if (startswith(option, "cipher=")) {
@@ -468,7 +468,8 @@ int main(int argc, char *argv[]) {
                                                  opt_keyfile_size,
                                                  &params);
 
-                                pass_volume_key = !!hash;
+                                /* hash == NULL implies the user passed "plain" */
+                                pass_volume_key = (hash == NULL);
                         }
 
                         if (k < 0) {