Package managers tend to make sure of sync() and friends to ensure
that any files they write are actually written to disk. This is
important when a package manager is used to do system package upgrades,
but is unnecessary when using package managers to build OS images. So
let's make sync() and friends a noop when we invoke package managers
Replaces #3544
*(apivfs_options() if apivfs else []),
"--become-root",
"--suppress-chown",
+ "--suppress-sync",
# Make sure /etc/machine-id is not overwritten by any package manager post install scripts.
"--ro-bind-try", Path(root) / "etc/machine-id", "/buildroot/etc/machine-id",
# Nudge gpg to create its sockets in /run by making sure /run/user/0 exists.