Skip to content

Commit 6ea1802

Browse files
committed
kargs: Add a few more comments
Signed-off-by: Colin Walters <[email protected]>
1 parent e40e235 commit 6ea1802

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/kargs.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ use serde::Deserialize;
1313

1414
use crate::deploy::ImageState;
1515

16+
/// The kargs.d configuration file.
1617
#[derive(Deserialize)]
1718
#[serde(rename_all = "kebab-case", deny_unknown_fields)]
1819
struct Config {
20+
/// Ordered list of kernel arguments.
1921
kargs: Vec<String>,
22+
/// Optional list of architectures (using the Rust naming conventions);
23+
/// if present and the current architecture doesn't match, the file is skipped.
2024
match_architectures: Option<Vec<String>>,
2125
}
2226

@@ -126,6 +130,7 @@ pub(crate) fn get_kargs(
126130
return Ok(kargs);
127131
}
128132

133+
// Fetch the kernel arguments from the new root
129134
let remote_kargs = get_kargs_from_ostree(repo, &fetched_tree, sys_arch)?;
130135

131136
// get the diff between the existing and remote kargs

0 commit comments

Comments
 (0)