mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Merge branch 'revert-efb80cac' into 'rust-rewrite'
Revert "correct partition type for EFI" See merge request ahoneybun/nyxi-installer!22
This commit is contained in:
commit
2ffc1c6bf7
1 changed files with 4 additions and 8 deletions
12
src/main.rs
12
src/main.rs
|
@ -18,12 +18,12 @@ fn format_drive(drive_name: &str) -> rsfdisk::Result<()> {
|
|||
|
||||
disk.partition_table_create(PartitionTableKind::GPT)?;
|
||||
|
||||
let boot_part_type = PartitionKind::builder()
|
||||
.guid(Guid::EfiSystem)
|
||||
let partition_type = PartitionKind::builder()
|
||||
.guid(Guid::LinuxRootx86_64)
|
||||
.build()?;
|
||||
|
||||
let boot = Partition::builder()
|
||||
.boot_part_type(partition_type.clone())
|
||||
.partition_type(partition_type.clone())
|
||||
.name("EFI")
|
||||
//Assuming 512 bytes per sector, 2_097_152 sectors <=> 1 GiB.
|
||||
.size_in_sectors(2_097_152)
|
||||
|
@ -31,12 +31,8 @@ fn format_drive(drive_name: &str) -> rsfdisk::Result<()> {
|
|||
|
||||
let _ = disk.partition_add(boot)?;
|
||||
|
||||
let root_part_type = PartitionKind::builder()
|
||||
.guid(Guid::LinuxRootx86_64)
|
||||
.build()?;
|
||||
|
||||
let root = Partition::builder()
|
||||
.root_part_type(partition_type)
|
||||
.partition_type(partition_type)
|
||||
.name("Root")
|
||||
.size_in_sectors(121_634_816)
|
||||
// 500GB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue