From e07d35944afce7ad6038cf89cf44dc222bfdceaa Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Mon, 4 Oct 2021 06:11:37 -0400 Subject: [PATCH] name nvme partitions correctly --- citadel-tool/src/install/installer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/citadel-tool/src/install/installer.rs b/citadel-tool/src/install/installer.rs index 101972e..759ec42 100644 --- a/citadel-tool/src/install/installer.rs +++ b/citadel-tool/src/install/installer.rs @@ -534,7 +534,11 @@ impl Installer { } fn target_partition(&self, num: usize) -> String { - format!("{}{}", self.target().display(), num) + if self.target_str().starts_with("/dev/nvme") { + format!("{}p{}", self.target().display(), num) + } else { + format!("{}{}", self.target().display(), num) + } } fn artifact_path(&self, filename: &str) -> PathBuf {