Colin Walters
b1ace57ef8
archive-test: Handle umask of 022 or 002
...
Red Hat appears to default to 002, whereas Debian systems default
to 022. Fun.
2013-05-01 18:43:01 -04:00
Colin Walters
e9a181c67d
Install tests
...
Matching https://live.gnome.org/GnomeGoals/InstalledTests
2013-05-01 15:26:21 -04:00
Colin Walters
c60c70e9a9
checkout: Add --allow-noent option
...
This is useful for the gnome-ostree build system where each build is
one commit, but it's split up into /runtime /devel /debug etc. trees.
Ideally we wouldn't have a /debug subdirectory for "noarch"
components for example.
So add an option to not error out if the given path doesn't exist in
the commit.
2013-05-01 12:15:02 -04:00
Colin Walters
f4327cc6a0
repo: Fix race condition in async checkout
...
When multiple threads need to uncompress an object, there was
a race condition where thread A could get EEXIST, unlink,
then thread B calls linkat(), then thread A tries to link() but
fails.
We can just loop in this case.
2013-04-30 19:34:20 -04:00
Colin Walters
8e4b296a96
libotutil: Drop is-hidden from fast queryinfo
...
Since now we look at .hidden files and bang on the mainloop for every
file lookup if that's specified =(
2013-04-29 22:08:56 -04:00
Colin Walters
c110680f5d
libgsystem: Update to latest
2013-04-29 14:04:48 -04:00
Colin Walters
8c694622b1
deploy: Swap current symlink only after updating the kernel
...
While this still isn't fully atomic (that depends on the bootloader),
this better ensures that the deployed kernel is booted with the
intended tree. For example, if we get ENOSPC when writing out the
kernel, we won't have swapped the symlink.
2013-04-26 18:15:51 -04:00
Colin Walters
52a3369709
libgsystem: Update
2013-04-22 12:27:47 -04:00
Colin Walters
b06c4a2081
pull-deploy: Tweak documentation to show using it for switching trees
2013-04-21 10:39:27 -04:00
Colin Walters
5565735bcb
admin: Use linkcopy_sync_data() for initramfs instead of rename()
...
It's possible (likely even) that /tmp is on a separate filesystem; in
that case, a raw rename() is going to fail.
Saw this on the ostree.gnome.org builder.
2013-04-15 12:50:58 -04:00
Colin Walters
a01783dafd
prune: Use g_format_size() so we get a human-readable number
...
We don't really care about the precise bytes.
2013-04-08 16:56:05 -04:00
Colin Walters
4271f84755
waitablequeue: Only use API from GLib 2.34
...
As intended.
2013-04-03 00:50:16 -04:00
Colin Walters
9cbae4f2fd
Release 2013.2
2013-04-01 22:23:46 -04:00
Colin Walters
8e8b31c814
build: Add scripts to EXTRA_DIST
...
...because Automake apparently doesn't.
2013-04-01 22:18:56 -04:00
Colin Walters
c563d07cb6
switchroot: Suppress compiler warning for asprintf
...
We're not going to run OOM here, if we do, we're totally screwed
anyways.
2013-04-01 21:52:24 -04:00
Colin Walters
ff3e83a5e1
Release 2013.1
2013-04-01 21:36:40 -04:00
Colin Walters
bac4d7a0d2
pull: Rework threading communication model
...
Previously, I've observed bugs where we either:
1) Exit too early, leaving undownloaded objects
2) Hang while downloading
This rewrite hopefully fixes both.
2013-04-01 18:56:38 -04:00
Colin Walters
a268b53dc9
run-apache: Use -DFOREGROUND, not -X
...
-X implies debug mode which limits the workers to 1, which totally
kills parallelism.
2013-04-01 18:55:35 -04:00
Colin Walters
5d1b0ec1b3
core: Fix object enumeration for archive-z2 repositories
...
This makes fsck work again, among other things.
2013-04-01 11:43:03 -04:00
Colin Walters
bde7e5c719
pull: Drop support for original archive repositories
...
For future refactoring here, it's just too complex to maintain support
for both of them, and the advantages of archive-z2 outweigh archive
too much.
2013-03-29 17:22:56 -04:00
Colin Walters
8a2628fc2c
tests: Update expected diff output
...
For previous diff commit.
2013-03-26 08:29:30 -04:00
Colin Walters
7b2fc8df36
admin: Assume we're using /ostree if there's a toplevel /usr
...
Mainly so admin install works without an existing /ostree again.
2013-03-18 18:11:00 -04:00
Colin Walters
e4faf0d98e
admin: Support installing pregenerated initramfs images from tree
...
Us running dracut is a hack, basically. We should default to
generating this on the server.
2013-03-16 17:45:15 -04:00
Colin Walters
a5a46317f1
build: Bump GLib dependency to 2.34.0
...
Just cleaner than an unstable version.
2013-03-12 18:45:27 -04:00
Colin Walters
ae3945210c
config-diff: Properly print files relative to root
...
Just less ugly.
2013-03-12 08:48:05 -04:00
Colin Walters
d6d2253f5a
admin: Fix lookup of active root
...
This should hopefully *really* fix deleting running deployments
https://bugzilla.gnome.org/show_bug.cgi?id=694762
2013-03-07 16:46:41 -05:00
Colin Walters
30d46f9a02
admin: Don't delete the running deployment
...
https://bugzilla.gnome.org/show_bug.cgi?id=694762
2013-03-04 22:52:08 -05:00
Colin Walters
dba406bb8f
deploy: Don't run triggers if /usr/share/ostree/triggers-run exists
...
This is preparatory work for a future gnome-ostree commit where we'll
default to running triggers on the build server side.
2013-03-04 11:52:43 -05:00
Colin Walters
a016d744ea
Update libgsystem
2013-02-26 12:19:05 -05:00
Colin Walters
202c5e35c9
core: Use default /sysroot/ostree/repo or just /ostree/repo as appropriate
...
The old logic was just weird, special casing root, and we can easily
autodetect the case where we need /ostree/repo.
2013-02-24 10:00:23 -05:00
Colin Walters
02217ba74a
build: Use AC_SYS_LARGEFILE
...
So we do the right thing on 32 bit.
2013-02-24 06:35:23 -05:00
Colin Walters
99fe7b66b3
pull-local: Don't call g_hash_table_init() on a NULL hash
...
Not sure why this wasn't crashing before.
2013-02-23 11:15:19 -05:00
Colin Walters
a821420711
core: Add API to convert csum -> checksum without malloc()
...
Just doing some profiling, this was in the top malloc() callers.
2013-02-23 11:02:56 -05:00
Colin Walters
a305c79f7a
pull-local: Fix uninitialized variable ref
2013-02-21 13:05:14 -05:00
Colin Walters
2819f644cf
TODO: A few updates
2013-02-21 11:19:00 -05:00
Colin Walters
8521438273
pull-local: Output status even in non-tty case
...
This way I can see progress when running builddisks.
2013-02-21 08:54:13 -05:00
Colin Walters
420e5f706a
admin: Use /sysroot/ostree automatically
...
When booted inside an ostree system, we want /sysroot/ostree, not
just /ostree by default.
2013-02-19 11:02:33 -05:00
Colin Walters
c9f56564a3
switchroot: Use MS_MOVE to / rather than chroot
...
This fixes a number of bugs; the two biggest are:
1) On shutdown systemd can correctly umount /
2) We can use linux-user-chroot inside the system, as is
necessary to do upgrades
See http://lists.freedesktop.org/archives/systemd-devel/2012-September/006703.html
2013-02-11 20:46:53 -05:00
Colin Walters
1d98f8865c
pull-deploy: Allow switching trees too
...
$ ostree admin pull-deploy gnome-ostree trees/gnomeos-3.8-x86_64-devel
Now works to switch your current tree to -devel from the current
runtime.
2013-02-01 10:56:06 -05:00
Colin Walters
42e3f1f4ab
pull-local: Fix crasher in previous commit when not connected to tty
2013-01-28 15:44:13 -05:00
Colin Walters
aa5e11af12
pull-local: Port to GSConsole
2013-01-28 15:35:47 -05:00
Colin Walters
13f36aa224
pull-local: Support pulling checksums too
...
This matches what pull allows.
2013-01-28 15:32:06 -05:00
Colin Walters
5424652a7e
libgsystem: Update to the latest
2013-01-25 15:19:34 -05:00
Colin Walters
64934202e4
admin: Don't overwrite previous ref unless it's different
...
We shouldn't overwrite deploy/<osname>/previous unless we actually
have something new.
This fixes the bug where two consecutive:
$ ostree admin upgrade foo
$ ostree admin upgrade foo
would end up pruning the data for foo/previous from the repo.
2013-01-24 17:32:59 -05:00
Colin Walters
59c98d0a04
pull: Drop dead code to pad output strings too
...
This is in GSConsole now.
2013-01-24 15:38:06 -05:00
Colin Walters
6fde0b61a8
Port ostree-pull to GSConsole
...
As part of this, we need to ensure our streams are inherited across
the chain of child processes.
2013-01-24 15:22:16 -05:00
Colin Walters
fafb256f57
Update to the latest libgsystem
2013-01-23 15:20:19 -05:00
Colin Walters
13aefbc096
admin install: Ensure /ostree is initialized first
...
https://bugzilla.gnome.org/show_bug.cgi?id=692008
2013-01-18 08:38:09 -05:00
Colin Walters
341923b928
admin: Ensure /var/log/journal exists
...
This is admittedly a hack, since the story is that services should be
handling /var on their own. But on the other hand the current systemd
story is that admins should create it to enable it. Possibly a better
fix is --enable-journal-always or something for systemd.
2013-01-17 22:08:21 -05:00
Colin Walters
50ca6b672b
update-kernel: Change dracut to use tmpdir on host, fix deploy path lookup
...
We had a bit of legacy code that looked for "current" if the deploy
path was unspecified; this needs to be deploy/OSNAME/current.
Secondly, we need to point dracut at a tmpdir outside of the root when
doing FUSE, because directories with mode 0700 and owned by root:root
aren't writable.
Also update libgsystem to the latest.
2013-01-09 04:32:51 -05:00