From 99bcb4e2a4162c4f0c67b170c5d6b80448df791a Mon Sep 17 00:00:00 2001 From: Craig Forbes Date: Fri, 14 Jun 2019 15:41:32 -0500 Subject: Create a /lib directory when creating the filesystem. --- supervisor/shared/filesystem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c index fa34ed0da..c50d7f4ee 100644 --- a/supervisor/shared/filesystem.c +++ b/supervisor/shared/filesystem.c @@ -99,6 +99,9 @@ void filesystem_init(bool create_allowed, bool force_create) { make_empty_file(&vfs_fat->fatfs, "/.Trashes"); make_empty_file(&vfs_fat->fatfs, "/.fseventsd/no_log"); + // create empty lib directory + f_mkdir(&vfs_fat->fatfs, "/lib"); + // and ensure everything is flushed supervisor_flash_flush(); } else if (res != FR_OK) { -- cgit v1.2.3