[Pkg-privacy-commits] [tails-installer] 26/43: WIP: give the system some more time to recognize the updated partition after changing its flags.

Ulrike Uhlig u-guest at moszumanska.debian.org
Tue Nov 15 23:30:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch debian/sid
in repository tails-installer.

commit f88a5755abe48167040da74676dfa3d89761f407
Author: intrigeri <intrigeri at boum.org>
Date:   Wed Jul 20 16:24:50 2016 +0000

    WIP: give the system some more time to recognize the updated partition after changing its flags.
---
 tails_installer/creator.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tails_installer/creator.py b/tails_installer/creator.py
index 59de5b8..bf61cdd 100755
--- a/tails_installer/creator.py
+++ b/tails_installer/creator.py
@@ -901,6 +901,15 @@ class LinuxTailsInstallerCreator(TailsInstallerCreator):
 
         self._set_partition_flags(system_partition, SYSTEM_PARTITION_FLAGS)
 
+        # XXX: give the system some more time to recognize the updated partition
+        # (https://labs.riseup.net/code/issues/10720#note-30)
+        # This code duplicates some code we have above, so if this works,
+        # we'll want to refactor.
+        self._udisksclient.settle()
+        self.flush_buffers(silent=True)
+        time.sleep(5)
+        block.call_rescan_sync(GLib.Variant('a{sv}', None))
+
     def update_system_partition_properties(self):
         self.log.info(_('Updating properties of system partition %(system_partition)s') % {
             'system_partition': self.drive['device']

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git



More information about the Pkg-privacy-commits mailing list