Keep the fsck log in /dev/fscklogs/fsck for bug report

Let's keep the log for bug report.

Bug: 230637147
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I4392c8b6d0332a18ea9302bdf53f902fde6d03dd
This commit is contained in:
Jaegeuk Kim
2022-05-02 10:41:16 -07:00
parent 416502831f
commit c30d209f5f

View File

@@ -478,8 +478,9 @@ public class BootReceiver extends BroadcastReceiver {
addFileToDropBox(db, timestamps, headers, "/dev/fscklogs/log", maxSize, tag);
}
// Remove the file so we don't re-upload if the runtime restarts.
file.delete();
// Rename the file so we don't re-upload if the runtime restarts.
File pfile = new File("/dev/fscklogs/fsck");
file.renameTo(pfile);
}
private static void logFsMountTime() {