bugfixing 😃

axtloss/rework-partitioning
axtlos 3 years ago
parent 560390f3e2
commit b95d011bc3
No known key found for this signature in database
GPG Key ID: A468AFD71DD51D4A

@ -147,11 +147,11 @@ pub fn fmt_mount(mountpoint: &String, filesystem: &String, blockdevice: &String)
}
pub fn partition(device: PathBuf, mode: PartitionMode, efi: bool, partitions: Vec<args::Partition>) {
if !device.exists() {
crash(format!("The device {device:?} doesn't exist"), 1);
}
match mode {
PartitionMode::Auto => {
if !device.exists() {
crash(format!("The device {device:?} doesn't exist"), 1);
}
log::debug!("automatically partitioning {device:?}");
if efi {
partition_with_efi(&device);

Loading…
Cancel
Save