60aa9a4a33
In this PR: https://github.com/projectatomic/rpm-ostree/pull/1309 I was hitting race conditions running `ostree admin pin` then `rpm-ostree cleanup` as it was possible that the daemon hadn't handled the inotify on the sysroot and reloaded the deployment state before the txn request came in. Close this race by doing an implicit `reload` before starting a txn. This is a pretty efficient operation because for the sysroot we're just doing a `stat()` and comparing mtime. Implementation wise, change the external API to drop the "did change" boolean as nothing outside of the `sysroot.c` file used it. A followup to this would be changing the `status` CLI to call a (new) DBus API like `RequestReload` that at least did the sysroot reload if the daemon was otherwise idle or so? And it'd be available to unprivileged users. Closes: #1311 Approved by: cgwalters |
||
---|---|---|
.. | ||
fetch-journal.sh | ||
install.sh | ||
multitest.py | ||
overlay.sh | ||
sync.sh | ||
test-autoupdate.sh | ||
test-basic.sh | ||
test-cached-rpm-diffs.sh | ||
test-db.sh | ||
test-download-only.sh | ||
test-initramfs.sh | ||
test-kernel-args.sh | ||
test-layering-basic.sh | ||
test-layering-gpg.sh | ||
test-layering-local.sh | ||
test-layering-non-root-caps.sh | ||
test-layering-relabel.sh | ||
test-layering-relayer.sh | ||
test-layering-rpmdb.sh | ||
test-layering-scripts.sh | ||
test-layering-unified.sh | ||
test-livefs.sh | ||
test-override-kernel.sh | ||
test-override-local-replace.sh | ||
test-override-remove.sh | ||
test-rojig-client.sh | ||
test.sh |