Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use sparse option in tar to extract firmware

There is a lot of "blank" space in the image, this makes it go a
little fast by not writing blocks with "NUL".
  • Loading branch information...
commit 6f127755be8db6e86aeb19bf9f05c5a77a8712f1 1 parent 7336868
@williambr williambr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gui/middleware/notifier.py
View
2  gui/middleware/notifier.py
@@ -2331,7 +2331,7 @@ def validate_update(self, path):
size = os.stat(path).st_size
proc = subprocess.Popen([
"/usr/bin/tar",
- "-xJpf",
+ "-xSJpf", # -S for sparse
path,
], stderr=f)
RE_TAR = re.compile(r"^In: (\d+)", re.M|re.S)
Please sign in to comment.
Something went wrong with that request. Please try again.