mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-23 21:35:26 +03:00
329a82c57e
I was trying to followup the `--selinux-policy-from-base` work to add a `cosa build --fast=overlay` for coreos-assembler, but hit on the fact that using e.g. `--owner-uid` disables commit optimizations. A while ago, https://github.com/ostreedev/ostree/pull/1643 landed which optimized this for the case where no modifications are provided. But, we really need the SELinux policy bits, and it's super convenient to run `ostree commit` as non-root. It's fairly surprising actually that it's taken us so long to iterate on a good interface for this "commit changes on top of a base" model. In practice, many nontrivial cases really end up needing to do a (hardlink) checkout, and that case is optimized. But for this coreos-assembler work I want to directly overlay onto a commit object another commit object. That previous PR above added exactly the API we need, so let's expose it in the CLI. What you can see happening in the test is that we provide `--owner-uid 42`, but that only applies to directories/files that were added in the commit. And now that I look at this, I think what we really want here is to avoid changing directories that exist in the base, but eh; in practice the main use here is for `--owner-uid 0` while committing as non-root; and that works fine with this since the baseline uid will be zero as well. |
||
---|---|---|
.. | ||
ostree-admin-cleanup.xml | ||
ostree-admin-config-diff.xml | ||
ostree-admin-deploy.xml | ||
ostree-admin-init-fs.xml | ||
ostree-admin-instutil.xml | ||
ostree-admin-os-init.xml | ||
ostree-admin-pin.xml | ||
ostree-admin-set-origin.xml | ||
ostree-admin-status.xml | ||
ostree-admin-switch.xml | ||
ostree-admin-undeploy.xml | ||
ostree-admin-unlock.xml | ||
ostree-admin-upgrade.xml | ||
ostree-admin.xml | ||
ostree-cat.xml | ||
ostree-checkout.xml | ||
ostree-checksum.xml | ||
ostree-commit.xml | ||
ostree-config.xml | ||
ostree-create-usb.xml | ||
ostree-diff.xml | ||
ostree-export.xml | ||
ostree-find-remotes.xml | ||
ostree-fsck.xml | ||
ostree-gpg-sign.xml | ||
ostree-init.xml | ||
ostree-log.xml | ||
ostree-ls.xml | ||
ostree-prune.xml | ||
ostree-pull-local.xml | ||
ostree-pull.xml | ||
ostree-refs.xml | ||
ostree-remote.xml | ||
ostree-reset.xml | ||
ostree-rev-parse.xml | ||
ostree-show.xml | ||
ostree-sign.xml | ||
ostree-static-delta.xml | ||
ostree-summary.xml | ||
ostree-trivial-httpd.xml | ||
ostree.repo-config.xml | ||
ostree.repo.xml | ||
ostree.xml | ||
rofiles-fuse.xml |