From 2baf684b4be61cf10fbd78e2a2497f32f2ce452c Mon Sep 17 00:00:00 2001 From: axtlos Date: Tue, 26 Apr 2022 23:30:30 +0200 Subject: [PATCH] allow for partitions to not be formatted --- src/functions/partition.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/functions/partition.rs b/src/functions/partition.rs index a8eb0e0..a708863 100755 --- a/src/functions/partition.rs +++ b/src/functions/partition.rs @@ -132,6 +132,12 @@ pub fn fmt_mount(mountpoint: &String, filesystem: &String, blockdevice: &String) format!("Formatting {blockdevice} as minix").as_str(), ) } + "don't format" => { + log::debug!("Not formatting {}", blockdevice); + } + "noformat" => { + log::debug!("Not formatting {}", blockdevice); + } _ => { crash( format!("Unknown filesystem {filesystem}, used in partition {blockdevice}"),