Skip to content

Commit

Permalink
rdcore: Add context to bind-boot and rootmap
Browse files Browse the repository at this point in the history
The FCOS coreos-boot-edit.sh runs both of these, and it wasn't
immediately clear to me which of them was failing.
  • Loading branch information
cgwalters committed Nov 6, 2023
1 parent 7033bbb commit 9154359
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/rdcore/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ mod rootmap;
mod stream_hash;
mod unique_fs;

use anyhow::Result;
use anyhow::{Context, Result};
use clap::Parser;

use crate::cmdline::*;

fn main() -> Result<()> {
match Cmd::parse() {
Cmd::Kargs(c) => kargs::kargs(c),
Cmd::Rootmap(c) => rootmap::rootmap(c),
Cmd::BindBoot(c) => rootmap::bind_boot(c),
Cmd::Rootmap(c) => rootmap::rootmap(c).context("Configuring rootmap"),
Cmd::BindBoot(c) => rootmap::bind_boot(c).context("Failed to bind boot"),
Cmd::StreamHash(c) => stream_hash::stream_hash(c),
Cmd::VerifyUniqueFsLabel(c) => unique_fs::verify_unique_fs(c),
#[cfg(target_arch = "s390x")]
Expand Down

0 comments on commit 9154359

Please sign in to comment.