From b4724f7168aeec86a7c9f84fde1ba6c00716163c Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Mon, 19 Aug 2024 20:46:34 +0000 Subject: [PATCH] Add luks support --- src/manual_partitioning_page/mod.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/manual_partitioning_page/mod.rs b/src/manual_partitioning_page/mod.rs index ac19203..14f11da 100644 --- a/src/manual_partitioning_page/mod.rs +++ b/src/manual_partitioning_page/mod.rs @@ -184,23 +184,21 @@ pub fn manual_partitioning_page( println!("mountpoint empty"); break; } - if fs_entry.mountpoint != "[SWAP]" - || !fs_entry.mountpoint.starts_with("/") - || fs_entry.mountpoint.starts_with("/dev") - { + if fs_entry.mountpoint == "[SWAP]" || fs_entry.mountpoint.starts_with("/") && !fs_entry.mountpoint.starts_with("/dev") { + } else { errored = true; println!("mountpoint invalid"); - //break; + break; } if fs_entry.partition.part_name.is_empty() { errored = true; println!("partition empty"); - //break; + break; } if !seen_mountpoints.insert(fs_entry.clone().mountpoint) { errored = true; println!("duplicate found"); - //break; + break; } // (*partition_method_manual_fstab_entry_array_refcell.borrow_mut()).push(fs_entry);