Skip to main content

parse_session

Function parse_session 

Source
pub fn parse_session(log: &str) -> UbootSession
Expand description

Parse a capture for an interactive session. Conservative by construction: KEY=value lines are everywhere in a boot log (kernel command line, vendor config dumps), so variables are only committed once the capture proves it holds a real dump, and only inside a block delimited by U-Boot’s own markers.

bdinfo and mtdparts parsing is deliberately not ported: nothing in the verdict reads them, and an unused second implementation is pure drift risk.