-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prep patches for /opt
and /usr/local
support
#4763
Prep patches for /opt
and /usr/local
support
#4763
Conversation
5048485
to
ce848a7
Compare
In a server-side compose, we call `rootfs_prepare_links()` twice: once as part of unified core assembly, and once as part of final postprocessing. In case of the former, all we really want are the `/var` compat symlinks before running scriptlets. Otherwise, let's reduce to a single call the place where we determine the fate of `/usr/local` server-side. And certainly client-side, we shouldn't touch it at all (unless it's part of e.g. some experimental knob that purposely does more invasive things). A follow up to this is to split out `/usr/local` handling entirely into a separate function call, and only call that function in the server-side compose path (and rename `rootfs_prepare_links()` to e.g. `rootfs_prepare_compat_var_symlinks()`).
`systemd-tmpfiles` follows symlinks, so we can write `/usr/local/` here instead of `/var/usrlocal/`. This doesn't matter right now, but will in a future patch where `/usr/local` will no longer be a symlink.
Prep for not always wanting those entries.
Hmm, Prow is failing with
which is really weird. I see it in the logs getting added to the cosa image:
Seems to be working fine in CoreOS CI at least. |
ce848a7
to
4a82e66
Compare
Oh right, I think I understand this. Prow is unprivileged so uses supermin for the treecompose. But the new file isn't in the rpmdb so supermin doesn't know to pull it in. CoreOS CI also runs unprivileged, but we build a new rpm-ostree RPM there. |
Until a new rpm-ostree is out with the new `rpm-ostree-0-integration-opt-usrlocal.conf` file and part of cosa. This duplicates the CoreOS CI test anyway. Note we do still put rpm-ostree in the target system we compose and run kola tests on. See coreos#4763 (comment)
4a82e66
to
6ccf858
Compare
Overall, LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks, I restarted CI. It should pass now that #4764 is in. |
Let's match CoreOS CI and also build RPMs here to not fall into issues relating to supermin relying on the rpmdb: coreos#4763 (comment) This implicitly reverts 1451675.
Split out of #4728