summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* ostree-fetcher: remove two unused functionsGiuseppe Scrivano2014-11-122-74/+0
| | | | | | | | | | _ostree_fetcher_query_state_text() and_ostree_fetcher_get_n_requests() have no callers, so remove them. If they will be needed, they can be easily copied back from the git history. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* metalink: have a single entry to the metalink moduleGiuseppe Scrivano2014-11-123-81/+75
| | | | | | Replace _ostree_metalink_request_async with a synchronous version. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* ostree_fetcher: new function _ostree_fetcher_contents_membuf_syncGiuseppe Scrivano2014-11-123-108/+166
| | | | | | Move code from ostree-repo-pull.c Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* syslinux: Adapt to bootloader UI changesMatthew Barnes2014-11-102-2/+11
| | | | | This was a side-effect of the bootloader UI changes in bug 739416, but should now be sufficiently future-proofed with code comments.
* tests: fix intermittent failure for test-sysrootGiuseppe Scrivano2014-11-101-1/+0
| | | | | | libtestExec doesn't run twice the same process now. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* ostree-repo-pull: Remove currently #if 0 static delta codeGiuseppe Scrivano2014-11-061-48/+0
| | | | | | We can readd this in the static deltas work. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* admin-test: Fix two typos in bootloader UI changeColin Walters2014-11-061-1/+1
| | | | Based on a patch from Giuseppe Scrivano <gscrivan@redhat.com>
* repo: Remove unused remote-cache dirMatthew Barnes2014-11-062-6/+0
| | | | | | Unused leftover from when ostree had pack files; minor cleanup. https://bugzilla.gnome.org/show_bug.cgi?id=739746
* Fix GFile leak in ostree_repo_constructed()Matthew Barnes2014-11-051-1/+0
|
* build: Distribute grub2-15_ostreeMatthew Barnes2014-11-041-1/+1
|
* commit: Split out file processing into helper functionColin Walters2014-11-031-104/+142
| | | | There should be no logic change here, just reducing indentation.
* libostree: Reformat bootloader titlesMatthew Barnes2014-11-032-7/+69
| | | | | | | | | | | | | | Use the pattern: $PRETTY_NAME [$COMMIT_VERSION] (ostree[:$OSNAME][:$DEPLOYMENT_INDEX]) $OSNAME is only shown if there are multiple values. $COMMIT_VERSION refers to the version tag in the commit's metadata. $DEPLOYMENT_INDEX is only shown if no $COMMIT_VERSION is available. https://bugzilla.gnome.org/show_bug.cgi?id=739416
* Release 2014.11v2014.11Colin Walters2014-10-301-1/+1
|
* diff: Use gs_unref_object not gs_free on a GFileGiuseppe Scrivano2014-10-301-1/+1
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* pull: Fix a used before initialization warningGiuseppe Scrivano2014-10-301-1/+1
| | | | | | src/libostree/ostree-repo-pull.c:1676:22: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* ostree-repo-pull: Fix inverted assert condition for maxdepthGiuseppe Scrivano2014-10-301-1/+1
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Release 2014.10Colin Walters2014-10-291-1/+1
|
* pull: Add depth supportv2014.10Colin Walters2014-10-285-4/+150
| | | | | | | | | For mirroring in particular, we really want to be able to traverse all history. $ ostree --repo=repo pull --mirror --depth=-1 https://bugzilla.gnome.org/show_bug.cgi?id=739240
* libostree: Add ostree_repo_pull_with_options()Colin Walters2014-10-283-8/+108
| | | | | | | | | | | We potentially need a lot of argument types for pull. Rather than have a C function with tons of arguments, let's use a GVariant a{sv} as a handy extensible (and immutable) bag of properties. This is prepratory work for adding an option to pull to traverse history. https://bugzilla.gnome.org/show_bug.cgi?id=737844
* grub2: Fix bad substitution in review followupColin Walters2014-10-271-1/+1
| | | | This caused GRUB2+EFI installations to fail.
* Release 2014.9v2014.9Colin Walters2014-10-241-1/+1
|
* checkout: permit checkout of a single fileGiuseppe Scrivano2014-10-243-0/+45
| | | | | | | | | fixes a coredump when using a command like: $ ostree --repo=repo checkout -U --subpath=/usr/lib/passwd \ fedora-atomic/rawhide/x86_64/docker-host usrlib-new Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Add (non-atomic) support for GRUB2 + UEFIColin Walters2014-10-2310-42/+202
| | | | | | | | | | | | | | | | | | | We need basic support for UEFI - many newer servers don't support BIOS compatibility mode anymore. However, this patch only implements non-atomic because UEFI is FAT, and we can't do the previous design for OSTree of atomic swap of /boot/loader. The Fedora/RHEL UEFI layout has the kernels on a "real" /boot partition, and /boot/efi/EFI/$vendor just holds the grub2 UEFI binary and grub.cfg. Following this, /boot/loader is still on the OS boot partition, and we still atomically swap it. This potentially paves the way to atomic upgrades in the future. https://bugzilla.gnome.org/show_bug.cgi?id=724246
* tests: Add some versioning metadata and test it appears in status outputColin Walters2014-10-232-8/+13
| | | | Followup to previous commits.
* admin status: Print the versionJames Antill2014-10-231-0/+23
|
* dump: Print the version when dumping a commit, log/show/etc.James Antill2014-10-231-0/+7
|
* admin: Add ot_admin_checksum_version to get a dup of the version for a commitJames Antill2014-10-232-0/+27
|
* corrupt-repo-ref.js: more aggressive file corruptionGiuseppe Scrivano2014-10-221-7/+16
| | | | | | | changing only a byte may not generate a corrupted file, so play very safe and change 10 bytes. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* fsck: report the correct error when a present file cannot be loadedGiuseppe Scrivano2014-10-221-0/+1
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* tests: test-admin-deploy-switch doesn't use deprecated "current" symlinkGiuseppe Scrivano2014-10-211-2/+4
| | | | | | | commit dfeb27eca55d923c57735e491e438ae54f8cc201 removed it, so change the test to not use it. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* tests: fix --help testGiuseppe Scrivano2014-10-211-4/+8
| | | | | | | Check for "Usage" only in the root command, builtins may not output it. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* make ostree_cmd__private__ ret value constGiuseppe Scrivano2014-10-212-2/+2
|
* repo: When writing to a non-root owned repo, chown() objects to matchColin Walters2014-10-213-0/+36
| | | | | | | | | | | | | Some package systems need to be run as root, so the process linking to libostree may also be root. However, it's reasonable to have the target repository be owned by a uid other than root. This patch makes it Just Work by chowning the file content to match. Note this only operates on archive-z2 repositories, because you can't usefully serve bare repositories via HTTP. https://bugzilla.gnome.org/show_bug.cgi?id=738954
* build: Include SELinux cflags with libostree build tooMatthew Barnes2014-10-201-0/+5
| | | | | | This is likely another issue with newer automake. https://bugzilla.gnome.org/738875
* Add "ostree remote delete" and corresponding APIColin Walters2014-10-174-0/+96
| | | | | | | | | For Anaconda, we have an ugly bootstrapping problem where we need to add the remote to the repository's config, then do a pull+deploy, then remove and re-add the config, because /etc/ostree/remotes.d doesn't exist yet in the target system. https://bugzilla.gnome.org/show_bug.cgi?id=738698
* Release 2014.8v2014.8Colin Walters2014-10-161-1/+1
|
* repo: Disable uncompressed object cache on non-writable reposColin Walters2014-10-163-12/+16
| | | | | | | | | | While we did support disabling the uncompressed-objects-cache per-repository: 1) We didn't actually respect that operation when doing CHECKOUT_MODE_USER on archive-z2 repositories 2) It'd be better to automatically detect we can't write to the repo and disable the uncompressed cache then.
* libostree: Add initial GRUB2 supportColin Walters2014-10-1619-11/+639
| | | | | | | | | | | | | | | | | | | | In this approach, we drop a /etc/grub.d/15_ostree file which is a hybrid of shell/C that picks up bits from the GRUB2 library (e.g. the block device script generation), and then calls into libostree's GRUB2 code which knows about the BLS entries. This is admittedly ugly. There exists another approach for GRUB2 to learn the BLS specification. However, the spec has a few issues: https://www.redhat.com/archives/anaconda-devel-list/2014-July/msg00002.html This approach also gives a bit more control to the admin via the naming of the 15_ostree symlink; they can easily disable it: Or reorder the ostree entries ahead of 10_linux: Also, this approach doesn't require patches for grub2, which is an issue with the pressure to backport (rpm-)OSTree to EL7.
* http: set the HTTP status on directory listingGiuseppe Scrivano2014-10-071-0/+1
| | | | | | | | | | | | Fix a HTTP response header like the following: HTTP/1.1 0 (null) Server: ostree-httpd libsoup/2.48.0 Date: Tue, 07 Oct 2014 11:19:22 GMT Content-Type: text/html Content-Length: 12533 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* tests: do not leave running httpd after tests exitGiuseppe Scrivano2014-10-073-4/+4
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* trivial-httpd: Another followup fix - need to listen on all interfacesColin Walters2014-10-061-1/+1
| | | | This was the intended design, but it regressed when updating.
* libostree: fix a gobject-introspection warningGiuseppe Scrivano2014-10-061-1/+1
| | | | | | | | src/libostree/ostree-repo.c:1759: Warning: OSTree: ostree_repo_import_object_from: unknown parameter 'checksum' in documentation comment, should be 'sha256' Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Release 2014.7v2014.7Colin Walters2014-10-031-1/+1
|
* Add missing file from previous commitColin Walters2014-10-031-0/+51
|
* Add "unconfigured-state" concept to origin filesColin Walters2014-10-035-3/+142
| | | | | | | | | | | | | | | Some operating systems may come with external tools for subscription management that drive access to the content. In that case, the origin file may not be useful (for example, it could refer to an installer ISO). This patch will allow OS installers to inject that state, with a useful error message, directing the system administrator to an external tool. See: https://github.com/projectatomic/rpm-ostree/issues/31 https://bugzilla.gnome.org/show_bug.cgi?id=737686
* pull: Support full recursive mirrors of repositories with summary fileColin Walters2014-10-033-5/+56
| | | | | | | | | | | | Now that we have a summary file, we can use it to allow a simple: ostree pull --mirror To download the latest commit on every branch. Also, for a case I'm dealing with there's only one branch, but I don't want mirror users to have to hardcode it. https://bugzilla.gnome.org/show_bug.cgi?id=737807
* Add API to directly link() objects between repositoriesColin Walters2014-10-013-64/+186
| | | | | | | And use it in pull-local. As one might expect, this is blazingly fast if they're on the same filesystem. I'll be using this to "promote" builds between different repositories.
* upgrader: Hold a ref to the originColin Walters2014-09-301-0/+1
| | | | | | | | We unref it in _finalize, so we need to hold a ref. I *thought* this was the source of https://github.com/projectatomic/rpm-ostree/issues/30 But apparently not =/
* Test 'ostree admin --print-current-dir'Owen W. Taylor2014-09-261-1/+6
| | | | | | Add a test for the --print-current-dir option https://bugzilla.gnome.org/show_bug.cgi?id=731051
* Add test case for 'admin instutil set-kargs'Owen W. Taylor2014-09-262-0/+65
| | | | | | | Test out the newly added options to 'instutil set-kargs' along with the existing functionality. https://bugzilla.gnome.org/show_bug.cgi?id=731051