From e7272ed059f10f5b5328f3ec2ac7e8bdea1f7175 Mon Sep 17 00:00:00 2001 From: Omer Tuchfeld Date: Thu, 31 Oct 2024 14:10:13 +0100 Subject: [PATCH] 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. --- lib/src/install/baseline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/install/baseline.rs b/lib/src/install/baseline.rs index b92eef457..f9b8795ca 100644 --- a/lib/src/install/baseline.rs +++ b/lib/src/install/baseline.rs @@ -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 ); }