Skip to content

Commit

Permalink
kargs: Add a few more comments
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jun 28, 2024
1 parent e40e235 commit 6ea1802
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/kargs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ use serde::Deserialize;

use crate::deploy::ImageState;

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

Expand Down Expand Up @@ -126,6 +130,7 @@ pub(crate) fn get_kargs(
return Ok(kargs);
}

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

// get the diff between the existing and remote kargs
Expand Down

0 comments on commit 6ea1802

Please sign in to comment.