mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
[partition] Make new partition flags explicit
Suggested by aliveafter1000: having a default value, and then filling in the default in one place it is used and not others, is weird. Instead of dropping the one use, remove the default value: partition flags are important enough to be explicit.
This commit is contained in:
parent
6ae7a6b470
commit
8144295e98
4 changed files with 33 additions and 13 deletions
|
@ -635,7 +635,8 @@ ChoicePage::doAlongsideApply()
|
|||
candidate->roles(),
|
||||
FileSystem::typeForName( m_defaultFsType ),
|
||||
newLastSector + 2, // *
|
||||
oldLastSector
|
||||
oldLastSector,
|
||||
PartitionTable::FlagNone
|
||||
);
|
||||
}
|
||||
else
|
||||
|
@ -647,7 +648,8 @@ ChoicePage::doAlongsideApply()
|
|||
FileSystem::typeForName( m_defaultFsType ),
|
||||
newLastSector + 2, // *
|
||||
oldLastSector,
|
||||
luksPassphrase
|
||||
luksPassphrase,
|
||||
PartitionTable::FlagNone
|
||||
);
|
||||
}
|
||||
PartitionInfo::setMountPoint( newPartition, "/" );
|
||||
|
@ -735,7 +737,9 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current )
|
|||
FileSystem::typeForName( m_defaultFsType ),
|
||||
selectedPartition->firstSector(),
|
||||
selectedPartition->lastSector(),
|
||||
m_encryptWidget->passphrase() );
|
||||
m_encryptWidget->passphrase(),
|
||||
PartitionTable::FlagNone
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -745,7 +749,9 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current )
|
|||
newRoles,
|
||||
FileSystem::typeForName( m_defaultFsType ),
|
||||
selectedPartition->firstSector(),
|
||||
selectedPartition->lastSector() );
|
||||
selectedPartition->lastSector(),
|
||||
PartitionTable::FlagNone
|
||||
);
|
||||
}
|
||||
|
||||
PartitionInfo::setMountPoint( newPartition, "/" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue