-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[settings] Fix generation of migration file on first boot
On a fresh boot, when no data exists for settings, the update to write the settings migration file is skipped over, and the initialization logic did not write the migration file. This caused the migration file to never be written and following builds to also be stuck in that state, because the new fidl storage code would never find the old data, always starting from scratch. With this change, the migration file is written when no migrations are run and the default values are used. This update also removes the panic on unknown migration id, which can cause a boot-loop if an update fails and the device falls back to the previous build. Finally, this bug prevents migration errors from causing the service to exit early. Instead an error is logged and the service can continue to run. Bug: 116902 Test: Tested migration on fresh boot and on device with modified settings. Red-green testing ensured fixes work as intended. Change-Id: Ibc54a2f86df1bac4550aa0f4aea315b5cacf4dd7 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/769862 Reviewed-by: Sijie Chen <[email protected]> Fuchsia-Auto-Submit: Paul Faria <[email protected]> Commit-Queue: Auto-Submit <[email protected]> Reviewed-by: Chip Fukuhara <[email protected]> Reviewed-by: Eric Rahm <[email protected]>
- Loading branch information
1 parent
9736914
commit 57c577f
Showing
3 changed files
with
257 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.