Skip to content

Commit e7272ed

Browse files
committed
install: improve error message when existing partitions are detected
When existing partitions are detected, suggest using bootc flag `--wipe` to wipe them, and not just the `wipefs` command.
1 parent b469332 commit e7272ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/install/baseline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub(crate) fn install_create_rootfs(
180180
crate::blockdev::wipefs(dev)?;
181181
} else if device.has_children() {
182182
anyhow::bail!(
183-
"Detected existing partitions on {}; use e.g. `wipefs` if you intend to overwrite",
183+
"Detected existing partitions on {}; use e.g. `wipefs` or --wipe if you intend to overwrite",
184184
opts.device
185185
);
186186
}

0 commit comments

Comments
 (0)