-
Notifications
You must be signed in to change notification settings - Fork 196
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
Unprivileged operation infrastructure #209
Commits on Feb 10, 2016
-
Major revamp/extension of libhif/unpacker code
This is in preparation for `rpm-ostree container`, which handles unpacking RPMs as non-root. At the moment, I'm copying code in from both ostree's libarchive bits (fixable...may need to export some utility functions) and some functions from libhif (harder, see: http://lists.rpm.org/pipermail/rpm-ecosystem/2016-January/000297.html ) There's lots more cleanup to do here, but I don't want to block on the resolution of the libhif changes.
Configuration menu - View commit details
-
Copy full SHA for 66cbe63 - Browse repository at this point
Copy the full SHA 66cbe63View commit details -
This is just a tech demo. Example usage: ``` mkdir -p ~/.cache/rpmostree-containers cd ~/.cache/rpmostree-containers rpm-ostree container init cp /etc/yum.repos.d/CentOS-Core.repo rpmmd.repos.d rpm-ostree container assemble bash rpm-ostree container assemble httpd ```
Configuration menu - View commit details
-
Copy full SHA for c84e3b0 - Browse repository at this point
Copy the full SHA c84e3b0View commit details -
This is a work-in-progress port against the libhif master + some outstanding PRs.
Configuration menu - View commit details
-
Copy full SHA for a7a69c7 - Browse repository at this point
Copy the full SHA a7a69c7View commit details -
Rename rpmostree-hif.[ch] -> core
This is really going to be the heart of rpm-ostree, so let's give it a better name.
Configuration menu - View commit details
-
Copy full SHA for 0c5da93 - Browse repository at this point
Copy the full SHA 0c5da93View commit details -
Introduce RpmOstreeContext as an object
This helps unify some code more initially between the treecompose and container bits.
Configuration menu - View commit details
-
Copy full SHA for e8604a6 - Browse repository at this point
Copy the full SHA e8604a6View commit details -
libpriv: Make the OSTree repo implicit
It's the default for unprivileged composes if it exists. This is an incremental step towards always using the ostree repo.
Configuration menu - View commit details
-
Copy full SHA for 28b90c9 - Browse repository at this point
Copy the full SHA 28b90c9View commit details -
It's what more components are standardizing on.
Configuration menu - View commit details
-
Copy full SHA for eb026e3 - Browse repository at this point
Copy the full SHA eb026e3View commit details -
Introduce "treespec" concept as GKeyFile
I debated config file formats a lot. JSON is fairly awkward for humans to write, and really painful to parse from C. YAML is nice, but also painful from C. Both are fairly overpowered for what we really need. Keyfiles (desktop spec, `GKeyFile`) have a lot of limitations, but at least it's used by systemd and `.desktop` files, and we already have a parser. We still parse the JSON treefiles, but internally convert them to `GKeyFile` (which is in turn converted to `GVariant` for a canonical form).
Configuration menu - View commit details
-
Copy full SHA for ed519bd - Browse repository at this point
Copy the full SHA ed519bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for df9fb2f - Browse repository at this point
Copy the full SHA df9fb2fView commit details -
treecompose: Make use of cachedir again (just for metadata)
We need to do selinux first.
Configuration menu - View commit details
-
Copy full SHA for dc30e27 - Browse repository at this point
Copy the full SHA dc30e27View commit details -
libpriv: Unify /usr/local, /etc -> /usr/etc, rpmdb handling
Right now we're doing the /etc -> /usr/etc inside the RPM import, but we might as well do the /usr/local bits in both. Also, use /usr/share/rpm by default for treecompose too so that is unified. Other things like systemd unit files and kernel handling are only going to be used for host side composes.
Configuration menu - View commit details
-
Copy full SHA for 1452248 - Browse repository at this point
Copy the full SHA 1452248View commit details -
Use a dummy install root for unprivileged composes
Sadly, libhif keeps trying to auto-create it. It'll need patching there, and possibly in librpm.
Configuration menu - View commit details
-
Copy full SHA for ceb8ee9 - Browse repository at this point
Copy the full SHA ceb8ee9View commit details
Commits on Feb 12, 2016
-
Configuration menu - View commit details
-
Copy full SHA for d0fadbf - Browse repository at this point
Copy the full SHA d0fadbfView commit details
Commits on Feb 17, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 0918df3 - Browse repository at this point
Copy the full SHA 0918df3View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2c6765 - Browse repository at this point
Copy the full SHA b2c6765View commit details
Commits on Feb 18, 2016
-
Configuration menu - View commit details
-
Copy full SHA for b5980b9 - Browse repository at this point
Copy the full SHA b5980b9View commit details