From 91543594b3e42489ad62f227b18bd31b3d490656 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 2 Jun 2023 14:48:09 -0400 Subject: [PATCH] rdcore: Add context to bind-boot and rootmap The FCOS coreos-boot-edit.sh runs both of these, and it wasn't immediately clear to me which of them was failing. --- src/bin/rdcore/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/rdcore/main.rs b/src/bin/rdcore/main.rs index 27abdc1e7..fd288aab8 100644 --- a/src/bin/rdcore/main.rs +++ b/src/bin/rdcore/main.rs @@ -18,7 +18,7 @@ mod rootmap; mod stream_hash; mod unique_fs; -use anyhow::Result; +use anyhow::{Context, Result}; use clap::Parser; use crate::cmdline::*; @@ -26,8 +26,8 @@ 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")]