diff --git a/lib/src/blockdev.rs b/lib/src/blockdev.rs index 7e2b3b818..51e4cdbf6 100644 --- a/lib/src/blockdev.rs +++ b/lib/src/blockdev.rs @@ -40,6 +40,7 @@ impl Device { } } +#[context("Failed to wipe {dev}")] pub(crate) fn wipefs(dev: &Utf8Path) -> Result<()> { Task::new_and_run( format!("Wiping device {dev}"), diff --git a/lib/src/install.rs b/lib/src/install.rs index 41a99ee9f..32d7d2cb3 100644 --- a/lib/src/install.rs +++ b/lib/src/install.rs @@ -763,6 +763,7 @@ async fn prepare_install( reexecute_self_for_selinux_if_needed(&source, config_opts.disable_selinux)?; let install_config = config::load_config()?; + tracing::debug!("Loaded install configuration"); // Create our global (read-only) state which gets wrapped in an Arc // so we can pass it to worker threads too. Right now this just diff --git a/lib/src/install/baseline.rs b/lib/src/install/baseline.rs index 60cb79d0a..9dd9be02c 100644 --- a/lib/src/install/baseline.rs +++ b/lib/src/install/baseline.rs @@ -263,7 +263,8 @@ pub(crate) fn install_create_rootfs( "root", Some("0FC63DAF-8483-4772-8E79-3D69D8477DE4"), ); - sgdisk.run()?; + sgdisk.run().context("Failed to run sgdisk")?; + tracing::debug!("Created partition table"); // Reread the partition table {