Skip to content

Commit b5f47ff

Browse files
authored
Merge pull request bootc-dev#621 from cgwalters/install-more-info
install: Add more information on target blockdev
2 parents 32a92d8 + e8ec719 commit b5f47ff

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)