Merge ~raharper/curtin:fix/curtin-pack-os-sync into curtin:master
Proposed by
Ryan Harper
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Scott Moser | ||||
Approved revision: | 2dea778b4ba6a3c248a0c38657f3eea7073eead7 | ||||
Merge reported by: | Scott Moser | ||||
Merged at revision: | bd40234f2b2618eb84de03892a7028b71164e2f5 | ||||
Proposed branch: | ~raharper/curtin:fix/curtin-pack-os-sync | ||||
Merge into: | curtin:master | ||||
Diff against target: |
24 lines (+4/-2) 1 file modified
helpers/shell-archive (+4/-2) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser (community) | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+341780@code.launchpad.net |
Description of the change
helpers/
Do not use tar [-S, --sparse] flag: at least one filesystem (btrfs)
requires sync/fsync to ensure proper detection of sparse files.
curtin doesn't contain any sparse files so this does not affect payload
size and this works around bug 1757565.
To post a comment you must log in.
We use the sync binary as os.sync() in python3.3 and newer will flush all buffers, where as sync --file-system <path> will sync only the filesystem that is holding the path; this should reduce the impact on a multi-user system.
Additionally, os.sync() is not available in python2.7