mirror of
https://github.com/philmmanjaro/alma.git
synced 2025-07-26 23:19:29 +02:00
Fix MacBook booting
This commit is contained in:
parent
3dcbf04b6c
commit
1182c96a08
@ -42,7 +42,7 @@ impl<'a> ALMA<'a> {
|
|||||||
|
|
||||||
mount_stack
|
mount_stack
|
||||||
.mount(
|
.mount(
|
||||||
&self.block.partition_device_path(2)?,
|
&self.block.partition_device_path(1)?,
|
||||||
boot_point,
|
boot_point,
|
||||||
Filesystem::Vfat,
|
Filesystem::Vfat,
|
||||||
None,
|
None,
|
||||||
|
10
src/main.rs
10
src/main.rs
@ -129,11 +129,11 @@ fn create(command: CreateCommand) -> Result<(), Error> {
|
|||||||
.args(&[
|
.args(&[
|
||||||
"-Z",
|
"-Z",
|
||||||
"-o",
|
"-o",
|
||||||
"--new=1::+10M",
|
"--new=1::+100M",
|
||||||
"--new=2::+150M",
|
"--new=2::+1M",
|
||||||
"--largest-new=3",
|
"--largest-new=3",
|
||||||
"--typecode=1:EF02",
|
"--typecode=1:EF00",
|
||||||
"--typecode=2:EF00",
|
"--typecode=2:EF02",
|
||||||
])
|
])
|
||||||
.arg(&disk_path)
|
.arg(&disk_path)
|
||||||
.run(ErrorKind::Partitioning)?;
|
.run(ErrorKind::Partitioning)?;
|
||||||
@ -141,7 +141,7 @@ fn create(command: CreateCommand) -> Result<(), Error> {
|
|||||||
thread::sleep(Duration::from_millis(1000));
|
thread::sleep(Duration::from_millis(1000));
|
||||||
|
|
||||||
info!("Formatting filesystems");
|
info!("Formatting filesystems");
|
||||||
let boot_partition = block_device.partition_device_path(2)?;
|
let boot_partition = block_device.partition_device_path(1)?;
|
||||||
mkfat
|
mkfat
|
||||||
.execute()
|
.execute()
|
||||||
.arg("-F32")
|
.arg("-F32")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user