Skip to content

Commit a63deaf

Browse files
committed
install: Make config module pub(crate) and configs serializable
Prep for takeover installs. Signed-off-by: Colin Walters <[email protected]>
1 parent bc1c6ba commit a63deaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/install.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,19 +312,19 @@ impl SourceInfo {
312312
}
313313
}
314314

315-
mod config {
315+
pub(crate) mod config {
316316
use super::*;
317317

318318
/// The toplevel config entry for installation configs stored
319319
/// in bootc/install (e.g. /etc/bootc/install/05-custom.toml)
320-
#[derive(Debug, Deserialize, Default)]
320+
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
321321
#[serde(deny_unknown_fields)]
322322
pub(crate) struct InstallConfigurationToplevel {
323323
pub(crate) install: Option<InstallConfiguration>,
324324
}
325325

326326
/// The serialized [install] section
327-
#[derive(Debug, Deserialize, Default)]
327+
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
328328
#[serde(rename = "install", rename_all = "kebab-case", deny_unknown_fields)]
329329
pub(crate) struct InstallConfiguration {
330330
pub(crate) root_fs_type: Option<super::baseline::Filesystem>,

0 commit comments

Comments
 (0)