Skip to content

Commit

Permalink
Merge branch 'jb42801' into 'master'
Browse files Browse the repository at this point in the history
[systemsettings] Pass "take-ownership" flag when formatting a storage. Fixes JB#42801

See merge request mer-core/nemo-qml-plugin-systemsettings!77
  • Loading branch information
rainemak committed Sep 12, 2018
2 parents 8622fd9 + 5a826c2 commit a7f1c58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/udisks2monitor.cpp
Expand Up @@ -182,6 +182,7 @@ void UDisks2::Monitor::format(const QString &deviceName, const QString &type, co
QVariantHash arguments;
arguments.insert(QStringLiteral("label"), QString(label));
arguments.insert(QStringLiteral("no-block"), true);
arguments.insert(QStringLiteral("take-ownership"), true);
arguments.insert(QStringLiteral("update-partition-type"), true);
if (!passphrase.isEmpty()) {
arguments.insert(QStringLiteral("encrypt.passphrase"), passphrase);
Expand Down

0 comments on commit a7f1c58

Please sign in to comment.