MCPcopy Create free account
hub / github.com/bootc-dev/bootc / root_args_from_cmdline

Function root_args_from_cmdline

crates/lib/src/bootc_kargs.rs:128–140  ·  view source on GitHub ↗
(cmdline: &Cmdline)

Source from the content-addressed store, hash-verified

126}
127
128pub(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(&param);
137 }
138 }
139 result
140}
141
142/// Load kargs.d files from the target ostree commit root
143pub(crate) fn get_kargs_from_ostree_root(

Callers 1

install_resetFunction · 0.85

Calls 3

keyMethod · 0.45
intoMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected