mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
Fix weird issue with alongside failing to create new partition.
This commit is contained in:
parent
423d2dfc5c
commit
f958f69218
1 changed files with 4 additions and 1 deletions
|
@ -555,10 +555,13 @@ ChoicePage::doAlongsideApply()
|
|||
*dev,
|
||||
candidate->roles(),
|
||||
FileSystem::Ext4,
|
||||
newLastSector + 1,
|
||||
newLastSector + 2, // *
|
||||
oldLastSector );
|
||||
PartitionInfo::setMountPoint( newPartition, "/" );
|
||||
PartitionInfo::setFormat( newPartition, true );
|
||||
// * for some reason ped_disk_add_partition refuses to create a new partition
|
||||
// if it starts on the sector immediately after the last used sector, so we
|
||||
// have to push it one sector further, therefore + 2 instead of + 1.
|
||||
|
||||
m_core->createPartition( dev, newPartition );
|
||||
m_core->setBootLoaderInstallPath( dev->deviceNode() );
|
||||
|
|
Loading…
Add table
Reference in a new issue