From 1182c96a08f27a4f88fa0d3a30befdb8a90b2b18 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Wed, 29 May 2019 09:53:29 +0300 Subject: [PATCH] Fix MacBook booting --- src/alma.rs | 2 +- src/main.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/alma.rs b/src/alma.rs index bb30be4..c5afda5 100644 --- a/src/alma.rs +++ b/src/alma.rs @@ -42,7 +42,7 @@ impl<'a> ALMA<'a> { mount_stack .mount( - &self.block.partition_device_path(2)?, + &self.block.partition_device_path(1)?, boot_point, Filesystem::Vfat, None, diff --git a/src/main.rs b/src/main.rs index 04373f5..a0a7eb3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -129,11 +129,11 @@ fn create(command: CreateCommand) -> Result<(), Error> { .args(&[ "-Z", "-o", - "--new=1::+10M", - "--new=2::+150M", + "--new=1::+100M", + "--new=2::+1M", "--largest-new=3", - "--typecode=1:EF02", - "--typecode=2:EF00", + "--typecode=1:EF00", + "--typecode=2:EF02", ]) .arg(&disk_path) .run(ErrorKind::Partitioning)?; @@ -141,7 +141,7 @@ fn create(command: CreateCommand) -> Result<(), Error> { thread::sleep(Duration::from_millis(1000)); info!("Formatting filesystems"); - let boot_partition = block_device.partition_device_path(2)?; + let boot_partition = block_device.partition_device_path(1)?; mkfat .execute() .arg("-F32")