mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-22 18:05:45 -05:00
Merge pull request #2424 from SixK/calamares
Save obfuscated luks passphrase in calamares globals variables
This commit is contained in:
commit
830f3f874f
1 changed files with 8 additions and 0 deletions
|
@ -41,6 +41,7 @@
|
|||
#include "utils/Logger.h"
|
||||
#include "utils/Retranslator.h"
|
||||
#include "utils/Units.h"
|
||||
#include "utils/String.h"
|
||||
#include "widgets/PrettyRadioButton.h"
|
||||
|
||||
#include <kpmcore/core/device.h>
|
||||
|
@ -689,6 +690,13 @@ ChoicePage::onHomeCheckBoxStateChanged()
|
|||
void
|
||||
ChoicePage::onLeave()
|
||||
{
|
||||
Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage();
|
||||
if ( m_encryptWidget->state() == EncryptWidget::Encryption::Confirmed ) {
|
||||
gs->insert( "passphrase", Calamares::String::obscure( m_encryptWidget->passphrase() ) );
|
||||
}else{
|
||||
gs->insert( "passphrase", "" );
|
||||
}
|
||||
|
||||
if ( m_config->installChoice() == InstallChoice::Alongside )
|
||||
{
|
||||
if ( m_afterPartitionSplitterWidget->splitPartitionSize() >= 0
|
||||
|
|
Loading…
Add table
Reference in a new issue