Fix poor firstboot.flag naming

This commit is contained in:
Willy-JL
2024-03-21 05:05:20 +00:00
parent 4719460e27
commit d8a4dde6ef

View File

@@ -13,7 +13,7 @@
#include <toolbox/tar/tar_archive.h>
#include <toolbox/crc32_calc.h>
#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);