Add luks support
This commit is contained in:
parent
d84f14ea6d
commit
b4724f7168
@ -184,23 +184,21 @@ pub fn manual_partitioning_page(
|
|||||||
println!("mountpoint empty");
|
println!("mountpoint empty");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if fs_entry.mountpoint != "[SWAP]"
|
if fs_entry.mountpoint == "[SWAP]" || fs_entry.mountpoint.starts_with("/") && !fs_entry.mountpoint.starts_with("/dev") {
|
||||||
|| !fs_entry.mountpoint.starts_with("/")
|
} else {
|
||||||
|| fs_entry.mountpoint.starts_with("/dev")
|
|
||||||
{
|
|
||||||
errored = true;
|
errored = true;
|
||||||
println!("mountpoint invalid");
|
println!("mountpoint invalid");
|
||||||
//break;
|
break;
|
||||||
}
|
}
|
||||||
if fs_entry.partition.part_name.is_empty() {
|
if fs_entry.partition.part_name.is_empty() {
|
||||||
errored = true;
|
errored = true;
|
||||||
println!("partition empty");
|
println!("partition empty");
|
||||||
//break;
|
break;
|
||||||
}
|
}
|
||||||
if !seen_mountpoints.insert(fs_entry.clone().mountpoint) {
|
if !seen_mountpoints.insert(fs_entry.clone().mountpoint) {
|
||||||
errored = true;
|
errored = true;
|
||||||
println!("duplicate found");
|
println!("duplicate found");
|
||||||
//break;
|
break;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
(*partition_method_manual_fstab_entry_array_refcell.borrow_mut()).push(fs_entry);
|
(*partition_method_manual_fstab_entry_array_refcell.borrow_mut()).push(fs_entry);
|
||||||
|
Loading…
Reference in New Issue
Block a user