Skip to content

Commit

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

The flags that are passed to the udisks when triggering format is in sync
with Fedora.
  • Loading branch information
rainemak committed Sep 12, 2018
1 parent 8622fd9 commit 5a826c2
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 5a826c2

Please sign in to comment.