Fix MacBook booting

This commit is contained in:
Roey Darwish Dror 2019-05-29 09:53:29 +03:00
parent 3dcbf04b6c
commit 1182c96a08
2 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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")