Skip to content

Commit

Permalink
#736 Вернул обратно. mbr разметку. Тип разметки должен быть один на в…
Browse files Browse the repository at this point in the history
…сех дисках, или появляются проблемы с загрузкой
  • Loading branch information
boffart committed Jun 26, 2024
1 parent 553a25f commit 017abc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 gpt'";
$command = "$parted --script --align optimal '$device' 'mklabel msdos'";
Processes::mwExec($command); // Apply the command to clear the partition table

// Now create a new partition that spans the entire disk
Expand Down Expand Up @@ -519,7 +519,7 @@ public static function selectAndConfigureStorageDisk(bool $automatic=false, bool
// Check if the disk selection should be automatic
if ($automatic) {
$target_disk_storage = $selected_disk['id'];
SystemMessages::echoToTeletype(PHP_EOL.' |- '."Automatically selected storage disk is $target_disk_storage");
SystemMessages::echoToTeletype(PHP_EOL.' - '."Automatically selected storage disk is $target_disk_storage");
} else {
echo PHP_EOL." " . Util::translate('Select the drive to store the data.');
echo PHP_EOL." " . Util::translate('Selected disk:') . "\033[33;1m [{$selected_disk['id']}] \033[0m ".PHP_EOL.PHP_EOL;
Expand Down

0 comments on commit 017abc6

Please sign in to comment.