From 9c1dca651b3dcbff4f094706a08fa5d4b847d9b2 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Wed, 9 Apr 2025 14:33:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/install/drives.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/install/drives.rs b/src/install/drives.rs index 85ce385..1151537 100644 --- a/src/install/drives.rs +++ b/src/install/drives.rs @@ -137,7 +137,9 @@ pub fn has_filesystem(dev: &str) -> Option { if let Some(dev_entry) = dev_entry { if let Some(fs) = dev_entry.as_object().unwrap().get("fstype") { - return Some(fs.to_string()); + if matches!(fs, serde_json::Value::String(_)) { + return Some(fs.to_string()); + } } }