Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initrd/bin/flash.sh: Improve speed and reliability
Improve speed by pre-filtering only for lines containing any tokens of interest to flashrom_progress_tokenize(). Improve reliability by avoiding dropping tokens that cross a stream buffer boundary. Occasionally, a token could be missed if it crosses a stream buffer boundary, due to read timing out too quickly before the next buffer is flushed. If this was a state-changing token, flashrom_progress() would hang forever. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
- Loading branch information