Fix weird issue with alongside failing to create new partition.
This commit is contained in:
parent
423d2dfc5c
commit
f958f69218
@ -555,10 +555,13 @@ ChoicePage::doAlongsideApply()
|
|||||||
*dev,
|
*dev,
|
||||||
candidate->roles(),
|
candidate->roles(),
|
||||||
FileSystem::Ext4,
|
FileSystem::Ext4,
|
||||||
newLastSector + 1,
|
newLastSector + 2, // *
|
||||||
oldLastSector );
|
oldLastSector );
|
||||||
PartitionInfo::setMountPoint( newPartition, "/" );
|
PartitionInfo::setMountPoint( newPartition, "/" );
|
||||||
PartitionInfo::setFormat( newPartition, true );
|
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->createPartition( dev, newPartition );
|
||||||
m_core->setBootLoaderInstallPath( dev->deviceNode() );
|
m_core->setBootLoaderInstallPath( dev->deviceNode() );
|
||||||
|
Loading…
Reference in New Issue
Block a user