We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778ec6a commit b696395Copy full SHA for b696395
crates/lib/src/cli.rs
@@ -472,6 +472,9 @@ pub(crate) enum InternalsOpts {
472
// The stateroot
473
stateroot: String,
474
},
475
+ /// Initiate a reboot the same way we would after --apply; intended
476
+ /// primarily for testing.
477
+ Reboot,
478
#[cfg(feature = "rhsm")]
479
/// Publish subscription-manager facts to /etc/rhsm/facts/bootc.facts
480
PublishRhsmFacts,
@@ -1230,6 +1233,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
1230
1233
Ok(())
1231
1234
}
1232
1235
1236
+ InternalsOpts::Reboot => crate::reboot::reboot(),
1237
InternalsOpts::Fsck => {
1238
let sysroot = &get_storage().await?;
1239
crate::fsck::fsck(&sysroot, std::io::stdout().lock()).await?;
0 commit comments