summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsegfault <segfault@riseup.net>2019-05-05 18:04:54 +0200
committersegfault <segfault@riseup.net>2019-05-17 04:12:16 +0200
commit903d8d01a5eb64d3c6d72174673da06eac482437 (patch)
treeed84329f63e81dfdfff899f0eb9201296b9be8a2
parentc9b34989a8344b1247de6bc06354d8bb5fa214d4 (diff)
Start tails-check-if-persistence-enabled.service after activating persistence configuration (refs: #11529)feature/11529-enable-persistence-immediately
TODO: The error handling should be improved, the GUI just hangs in case that `systemx` fails. It should display an error to the user instead.
-rw-r--r--lib/Tails/Persistence/Step/Configure.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Tails/Persistence/Step/Configure.pm b/lib/Tails/Persistence/Step/Configure.pm
index 0aebc30..7ab70dd 100644
--- a/lib/Tails/Persistence/Step/Configure.pm
+++ b/lib/Tails/Persistence/Step/Configure.pm
@@ -200,6 +200,7 @@ method operation_finished ($error = undef) {
$self->working(1);
$self->unmount_persistence_partition_cb->();
systemx(qw{sudo -n /usr/local/sbin/live-persist activate /dev/mapper/TailsData_unlocked});
+ systemx(qw{sudo -n /bin/systemctl start tails-check-if-persistence-enabled.service});
$self->working(0);
say STDERR "activated persistence configuration.";