pub fn get_cmdline_value<'a>(cmdline: &'a str, prefix: &str) -> Option<&'a str>Expand description
Gets the value of an entry from the kernel cmdline.
The prefix should be something like “composefs=”.
This iterates the entries in the provided cmdline string searching for an entry that starts with the provided prefix. This will successfully handle quoting of other items in the cmdline, but the value of the searched entry is returned verbatim (ie: not dequoted).