Skip to content

Commit

Permalink
#736 поправил тип создаваемого раздела storage на GPT.
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Jun 26, 2024
1 parent a4d80bf commit 1d766b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/System/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public function formatEntireDisk(string $device, bool $bg = false): bool

// First, remove existing partitions and then create a new msdos partition table and ext4 partition
// This command deletes all existing partitions and creates a new primary partition using the full disk
$command = "$parted --script --align optimal '$device' 'mklabel msdos'";
$command = "$parted --script --align optimal '$device' 'mklabel gpt'";
Processes::mwExec($command); // Apply the command to clear the partition table

// Now create a new partition that spans the entire disk
Expand Down

0 comments on commit 1d766b7

Please sign in to comment.