(cmdline: &Cmdline)
| 126 | } |
| 127 | |
| 128 | pub(crate) fn root_args_from_cmdline(cmdline: &Cmdline) -> CmdlineOwned { |
| 129 | let mut result = Cmdline::new(); |
| 130 | for param in cmdline { |
| 131 | let key = param.key(); |
| 132 | if key == ROOT_KEY.into() |
| 133 | || key == ROOTFLAGS_KEY.into() |
| 134 | || key.starts_with(INITRD_ARG_PREFIX) |
| 135 | { |
| 136 | result.add(¶m); |
| 137 | } |
| 138 | } |
| 139 | result |
| 140 | } |
| 141 | |
| 142 | /// Load kargs.d files from the target ostree commit root |
| 143 | pub(crate) fn get_kargs_from_ostree_root( |
no test coverage detected