sources/ostree: enable locked-access explicitly
Make sure access to the shared ostree metadata is locked properly. This is the default since 2018.5, but lets be explicit here. This also makes sure that the option exists and the local version supports locked and protected access. It is unclear whether the `ostree init` honors that as well. It really should, and if it doesn't we can always report it upstream.
This commit is contained in:
parent
aaa8854437
commit
2e039a778c
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ def main(options, checksums, cache, output):
|
|||
repo_cache = os.path.join(cache, "repo")
|
||||
ostree("init", mode="archive", repo=repo_cache)
|
||||
|
||||
# Make sure the cache repository uses locks to protect the metadata during
|
||||
# shared access. This is the default since `2018.5`, but lets document this
|
||||
# explicitly here.
|
||||
ostree("config", "set", "repo.locking", "true", repo=repo_cache)
|
||||
|
||||
repo_out = os.path.join(output, "repo")
|
||||
ostree("init", mode="archive", repo=repo_out)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue