From e8ec7192e6c046d1265a28dbba0fcb555a8f1a78 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 20 Jun 2024 19:12:52 -0400 Subject: [PATCH] install: Add more information on target blockdev It's useful to see this; we're already somewhat verbose at install time. Signed-off-by: Colin Walters --- lib/src/install/baseline.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/src/install/baseline.rs b/lib/src/install/baseline.rs index 915f0c3e..81bbd58b 100644 --- a/lib/src/install/baseline.rs +++ b/lib/src/install/baseline.rs @@ -210,7 +210,16 @@ pub(crate) fn install_create_rootfs( // and we need to error out. anyhow::bail!("No install configuration found, and no filesystem specified") }; - println!("Using block setup: {block_setup}"); + let serial = device.serial.as_deref().unwrap_or(""); + let model = device.model.as_deref().unwrap_or(""); + let size = device + .size + .as_deref() + .ok_or_else(|| anyhow::anyhow!("Missing size for blockdev"))?; + println!("Block setup: {block_setup}"); + println!(" Size: {size}",); + println!(" Serial: {serial}"); + println!(" Model: {model}"); let root_size = opts .root_size