mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
Modules: chase API change, use std::chrono::seconds
This commit is contained in:
parent
e2504627aa
commit
a0854a999e
8 changed files with 34 additions and 29 deletions
|
@ -71,7 +71,7 @@ struct LuksDevice
|
|||
* Given a list of partitions (as set up by the partitioning module,
|
||||
* so there's maps with keys inside), returns just the list of
|
||||
* luks passphrases for each device.
|
||||
*/
|
||||
*/
|
||||
static QList< LuksDevice >
|
||||
getLuksDevices( const QVariantList& list )
|
||||
{
|
||||
|
@ -130,7 +130,7 @@ static bool
|
|||
setupLuks( const LuksDevice& d )
|
||||
{
|
||||
auto r = CalamaresUtils::System::instance()->targetEnvCommand(
|
||||
{ "cryptsetup", "luksAddKey", d.device, keyfile }, QString(), d.passphrase, 15 );
|
||||
{ "cryptsetup", "luksAddKey", d.device, keyfile }, QString(), d.passphrase, std::chrono::seconds( 15 ) );
|
||||
if ( r.getExitCode() != 0 )
|
||||
{
|
||||
cWarning() << "Could not configure LUKS keyfile on" << d.device << ':' << r.getOutput() << "(exit code"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue