Skip to content

Commit

Permalink
install: improve error message when existing partitions are detected
Browse files Browse the repository at this point in the history
When existing partitions are detected, suggest using bootc flag `--wipe`
to wipe them, and not just the `wipefs` command.
  • Loading branch information
omertuc committed Oct 31, 2024
1 parent b469332 commit e7272ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/install/baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub(crate) fn install_create_rootfs(
crate::blockdev::wipefs(dev)?;
} else if device.has_children() {
anyhow::bail!(
"Detected existing partitions on {}; use e.g. `wipefs` if you intend to overwrite",
"Detected existing partitions on {}; use e.g. `wipefs` or --wipe if you intend to overwrite",
opts.device
);
}
Expand Down

0 comments on commit e7272ed

Please sign in to comment.