From f958f692185c4811339327438d1473f6c60a8dfe Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 14 Jan 2016 18:47:02 +0100 Subject: [PATCH] Fix weird issue with alongside failing to create new partition. --- src/modules/partition/gui/ChoicePage.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 2074eb1a5..c2efe4dc5 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -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() );