Skip to content

Commit e8ec719

Browse files
committed
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 <[email protected]>
1 parent 377bfd6 commit e8ec719

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/src/install/baseline.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,16 @@ pub(crate) fn install_create_rootfs(
210210
// and we need to error out.
211211
anyhow::bail!("No install configuration found, and no filesystem specified")
212212
};
213-
println!("Using block setup: {block_setup}");
213+
let serial = device.serial.as_deref().unwrap_or("<unknown>");
214+
let model = device.model.as_deref().unwrap_or("<unknown>");
215+
let size = device
216+
.size
217+
.as_deref()
218+
.ok_or_else(|| anyhow::anyhow!("Missing size for blockdev"))?;
219+
println!("Block setup: {block_setup}");
220+
println!(" Size: {size}",);
221+
println!(" Serial: {serial}");
222+
println!(" Model: {model}");
214223

215224
let root_size = opts
216225
.root_size

0 commit comments

Comments
 (0)