-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrator: log directly to persistent storage
The initramfs logs default to being written to tmpfs at /run. The migrator hook also writes messages to this location, which is later copied to persistent storage by resin-init-flasher if present. However, any failure before resin-init-flasher, such as failing to copy installation binaries to memory, will result in the file not being written to persistent storage for debugging. Write the log file to persistent storage directly in the migrator hook in case of failure before resin-init-flasher, but also write to tmpfs and copy to the new boot partition filesystem in the flasher script. This ensures the migration logfile is always available on persistent storage no matter where a failure occurs. Change-type: patch Signed-off-by: Joseph Kogut <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 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