From d8a4dde6ef67b53d80c98b49b50a34210625cc46 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Thu, 21 Mar 2024 05:05:20 +0000 Subject: [PATCH] Fix poor firstboot.flag naming --- .../system/updater/util/update_task_worker_backup.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/applications/system/updater/util/update_task_worker_backup.c b/applications/system/updater/util/update_task_worker_backup.c index 95d9306b94..f817ea0136 100644 --- a/applications/system/updater/util/update_task_worker_backup.c +++ b/applications/system/updater/util/update_task_worker_backup.c @@ -13,7 +13,7 @@ #include #include -#define FIRSTBOOT_FLAG_PATH CFG_PATH("firstboot.flag") +#define FIRSTBOOT_FLAG_PATH CFG_PATH("momentum_firstboot.flag") #define TAG "UpdWorkerBackup" @@ -205,6 +205,10 @@ static bool update_task_post_update(UpdateTask* update_task) { update_task_set_progress(update_task, UpdateTaskStageSplashscreenInstall, 0); FuriString* tmp_path; tmp_path = furi_string_alloc_set(update_task->update_path); + storage_common_rename( + update_task->storage, + CFG_PATH("firstboot.flag"), // Poor naming, shouldn't be generic for all FW + FIRSTBOOT_FLAG_PATH); if(storage_common_stat(update_task->storage, FIRSTBOOT_FLAG_PATH, NULL) == FSE_NOT_EXIST) { File* file = storage_file_alloc(update_task->storage);