summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <tails@boum.org>2015-01-13 21:43:01 +0000
committerTails developers <tails@boum.org>2015-01-13 21:43:01 +0000
commit0fb50af039e2fb4d69c88fbb0753c8007a5e4c12 (patch)
tree896f1e55541b24eacb600adc2adddde3a358fa2e
parent1ec57b4682d33894ebfe6cf9a94276583a756cc8 (diff)
Fix: 7678 Tails Installer crashes on upgrade
-rw-r--r--liveusb/source.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/liveusb/source.py b/liveusb/source.py
index 3f93c1e..8472ff0 100644
--- a/liveusb/source.py
+++ b/liveusb/source.py
@@ -7,6 +7,7 @@ import subprocess
from stat import ST_SIZE
from liveusb import _
from liveusb.releases import releases
+from liveusb.config import config
from liveusb.utils import (_to_unicode, _dir_size, iso_is_live_system,
unicode_to_utf8, _set_liberal_perms_recursive,
underlying_physical_device)
@@ -85,7 +86,7 @@ class RunningLiveSystemSource(Source):
self.size = _dir_size(self.path)
self.dev = underlying_physical_device(self.path)
def clone(self, destination):
- for f in os.listdir(self.path):
+ for f in config['liveos_toplevel_files']:
src = os.path.join(self.path, f)
dst = os.path.join(destination, f)
if os.path.isfile(src):