Commit 39ee611
committed
kernel_cmdline: Improve parameter parsing with validation and whitespace handling
- Convert from infallible From traits to fallible TryFrom for parameter parsing
- Add validation to reject keys with internal whitespace
- Improve whitespace handling by trimming leading/trailing ascii whitespace
- Filter out empty chunks from extra whitespace between parameters
- Add comprehensive test coverage for new validation and edge cases
- Maintain backward compatibility for valid kernel command line formats
🤖Commit message generated with [Claude Code](https://claude.ai/code)
Signed-off-by: John Eckersberg <jeckersb@redhat.com>1 parent 84aba8e commit 39ee611
1 file changed
Lines changed: 192 additions & 50 deletions
0 commit comments