You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But we're not using that because we're executing pivot from the MCD. One option (I think) is to use systemd-run for pivot. Downside is that the logs go to the journal, not the MCD, but we can scrape them?
So we're skipping rpm-ostreed. Hmm. Maybe the best would be to change pivot to add a file:/// remote and then we rebase to it? Another option is to explicitly set the exec context.
If that works, that'd be my preference over coreos/rpm-ostree#1732 given how specific the circumstances are.
In order to make it work we'd have to mount selinuxfs...which would then cause other tools in the container to think SELinux is enabled, which probably wouldn't be a problem but still...an unknown impact.
I think it's going to work best if we do SELinux related things on the host and keep our container more container-like.
And more generally...I think we want to keep the model of having "host APIs" that live on the host where that makes sense, and the MCD drives them.
I think we want to keep the model of having "host APIs" that live on the host where that makes sense, and the MCD drives them
Yeah that makes sense. This is also the root of the issue here. We're calling the host pivot from the container context. Hmm, how about something like this:
Activity
cgwalters commentedon Jan 15, 2019
(This issue is an argument for rolling in at least some of the pivot functionality into rpm-ostreed itself)
WIP: Add rebase --import-src-repo
jlebon commentedon Jan 16, 2019
I'm still confused why we're hitting this.
/usr/bin/ostreeisinstall_exec_ttoo, no?jlebon commentedon Jan 16, 2019
Ahh I see, it's not transitioning to
install_tbecause we're invoking from a container.If that works, that'd be my preference over coreos/rpm-ostree#1732 given how specific the circumstances are.
cgwalters commentedon Jan 16, 2019
In order to make it work we'd have to mount
selinuxfs...which would then cause other tools in the container to think SELinux is enabled, which probably wouldn't be a problem but still...an unknown impact.I think it's going to work best if we do SELinux related things on the host and keep our container more container-like.
And more generally...I think we want to keep the model of having "host APIs" that live on the host where that makes sense, and the MCD drives them.
jlebon commentedon Jan 16, 2019
Yeah that makes sense. This is also the root of the issue here. We're calling the host
pivotfrom the container context. Hmm, how about something like this:rhcos-pivot.pathrhcos-pivot.service?
cgwalters commentedon Jan 16, 2019
Which we want anyways, see 94d3783
WIP: Add pivot.path and pivot.service
WIP: Add pivot.path and pivot.service
WIP: Add pivot.path and pivot.service
Add pivot.service as a host API
Add pivot.service as a host API
Add pivot.service as a host API
Add pivot.service as a host API
5 remaining items
app/rebase: Support local repo remotes
cmd/root: Let rpm-ostree pull from the container repo
Add pivot.service as a host API
cmd/root: Let rpm-ostree pull from the container repo
Add pivot.service as a host API
Add pivot.service as a host API
Add pivot.service as a host API
Add pivot.service as a host API
Use pivot.service to perform pivot
[-]ootpa rebase fails due to SELinux `mac_admin`[/-][+]rhel8 rebase fails due to SELinux `mac_admin`[/+]Use pivot.service to perform pivot