Skip to content

Commit

Permalink
Fix poor firstboot.flag naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Mar 21, 2024
1 parent 4719460 commit d8a4dde
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion applications/system/updater/util/update_task_worker_backup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d8a4dde

Please sign in to comment.