Skip to content

Commit

Permalink
Merge pull request #621 from cgwalters/install-more-info
Browse files Browse the repository at this point in the history
install: Add more information on target blockdev
  • Loading branch information
cgwalters authored Jun 21, 2024
2 parents 32a92d8 + e8ec719 commit b5f47ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/src/install/baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("<unknown>");
let model = device.model.as_deref().unwrap_or("<unknown>");
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
Expand Down

0 comments on commit b5f47ff

Please sign in to comment.