Merge "cryptfs: log umount() failure reason" into lmp-dev
diff --git a/cryptfs.c b/cryptfs.c
index 42d8bec..84f5587 100644
--- a/cryptfs.c
+++ b/cryptfs.c
@@ -3047,7 +3047,8 @@
             mkdir("/cache/recovery", 0700);
             int fd = open("/cache/recovery/command", O_RDWR|O_CREAT|O_TRUNC, 0600);
             if (fd >= 0) {
-                write(fd, "--wipe_data", strlen("--wipe_data") + 1);
+                write(fd, "--wipe_data\n", strlen("--wipe_data\n") + 1);
+                write(fd, "--reason=cryptfs_enable_internal\n", strlen("--reason=cryptfs_enable_internal\n") + 1);
                 close(fd);
             } else {
                 SLOGE("could not open /cache/recovery/command\n");