Commit Graph
100 Commits
Author SHA1 Message Date
Colin Walters 659c99417c Switch to LGPLv2+ for most code
Since we're making a shared library, it should be usable by non-GPL
apps.

To allow more code sharing between the core and the tests, move them
to the LGPLv2+ too.

A few bits of test and other code are still GPL.  See the new COPYING
file for more information.
2011-11-10 13:17:04 -05:00
Colin Walters 8d7acbd59f Rename parallel-debian/ to gnomeos/ 2011-11-10 12:07:15 -05:00
Colin Walters 4c7bf3936a parallel-debian: Ensure we're not running make-base as root actually 2011-11-10 11:56:34 -05:00
Colin Walters 1103284645 parallel-debian: Support being run as non-root 2011-11-10 11:52:48 -05:00
Colin Walters 4a17c659b8 parallel-debian: Remove accidentally committed file 2011-11-10 11:36:08 -05:00
Colin Walters 45edb34dc9 README.md: Link to IPS 2011-11-10 09:43:22 -05:00
Colin Walters a3043c0d64 core: Stub out a diff API and builtin 2011-11-10 09:27:22 -05:00
Colin Walters f265579367 parallel-debian: Exclude plymouth
Otherwise the boot will stall if there's no plymouth in the
target image.
2011-11-10 08:36:21 -05:00
Colin Walters 95e7775c2d parallel: Ensure we have some crucial subdirectories of /var
Also move sysroot creation up a step - each commit is kind of
expensive at present.
2011-11-10 08:32:55 -05:00
Colin Walters f9303c3633 parallel-debian: Remove hack to remove FIFO
We now support named pipes.
2011-11-09 10:02:06 -05:00
Colin Walters a103218fd1 core: Support named pipes
This is mainly useful for sysvinit's "/dev/initctl".
2011-11-09 09:08:58 -05:00
Colin Walters 1d23e4b8e8 core: Actually return an error from fsck
And add some tests that fsck reports an error.
2011-11-09 08:27:47 -05:00
Colin Walters fab085dcaf README: Make package discussion more useful 2011-11-09 07:56:43 -05:00
Colin Walters 9372ca0446 parallel-debian: Update to latest 2011-11-09 06:19:24 -05:00
Colin Walters 9a8736203d core: Add ot_util_variant_take_ref for older GLib versions 2011-11-09 06:13:26 -05:00
Colin Walters 8b43c539cf core: Add internal GFile implementation for reading commits
The data structures we use for reading already-written commits versus
building them don't need to be the same.  It's cleaner if we can have
generic code which operates on a GFile implementation for reads,
because then we can share more generic code for walking and operating
on filesystem trees via GIO.
2011-11-09 06:07:13 -05:00
Colin Walters 3cd55cb9ab core: Squash a memory leak while reading gvariants 2011-11-09 06:07:13 -05:00
Colin Walters 8bda1c6a84 tests: Add OT_TEST_DEBUG environment variable 2011-11-09 05:29:53 -05:00
Colin Walters d14568dd2a core: Add public API to get the path for an object 2011-11-08 19:46:29 -05:00
Colin Walters 8f0afd1f54 core: Add API for just effectively stat()ing packed files
This will allow us to implement more of a VFS-like API on top.
2011-11-08 19:46:25 -05:00
Colin Walters ed57f1c676 core: Remove old commit API
This eliminates more now-dead code.
2011-11-08 19:25:23 -05:00
Colin Walters b837db20ef core: Remove old wrapper functions in import path
Just code cleanup.
2011-11-08 19:23:04 -05:00
Colin Walters b11096cdd7 core: Use temp dir when creating GVariant metadata 2011-11-08 19:04:31 -05:00
Colin Walters 7a67b17cd2 otutil: Add some more GIO helpers 2011-11-08 19:00:28 -05:00
Colin Walters eb288bab9d init: Add new explicit temporary directory
This will be used to store all tempoary files.
2011-11-08 18:58:11 -05:00
Colin Walters 2be1407622 commit: Drop the ability to --add --remove
This forces us to have two code paths for doing a commit; let's just
drop this ability for now since it's not very useful.
2011-11-08 18:58:01 -05:00
Colin Walters 1ba3a67eb5 core: Silence gcc -Wall compiler warnings 2011-11-07 12:30:32 -05:00
Colin Walters e03ffa269b core: Store filenames in sorted order
I believe GHashTable order was stable for a given set of names, but
this will make it more explicit, and also allow for binary searching.
2011-11-07 12:26:47 -05:00
Colin Walters b2429445e4 core: Add missing null terminator in option parsing 2011-11-06 16:25:45 -05:00
Colin Walters e71f60cb21 core: Unify queryinfo flags such that we just use stat/readlink 2011-11-06 16:24:11 -05:00
Colin Walters 43105183cf TODO: Update a bit 2011-11-06 16:23:58 -05:00
Colin Walters 8f33c31ee1 parallel-debian: Port to latest ostree 2011-11-06 15:47:00 -05:00
Colin Walters 84e85a8377 core: Misc bugfixes for commit 2011-11-06 14:53:34 -05:00
Colin Walters ea6a761265 Reorder compose and pull tests 2011-11-04 16:14:12 -04:00
Colin Walters 9877f7eea3 tests: A few more compose tests 2011-11-04 16:13:21 -04:00
Colin Walters ed90bf77cc core: Make compose commits contain metadata about their composition
This allows tracking of their history better.
2011-11-04 15:59:08 -04:00
Colin Walters d2cb5fb49a core: Support actually adding metadata to commits 2011-11-04 15:59:08 -04:00
Colin Walters 889f454cb1 tests: Make GLib warnings fatal 2011-11-04 15:59:08 -04:00
Colin Walters dd37e46172 tests: Output errors to stderr, so they show up under "prove" 2011-11-04 12:31:40 -04:00
Colin Walters e52bc624ff compose: Squash a memory leak 2011-11-04 11:03:44 -04:00
Colin Walters b15eee447a commit: Support reading current directory rather than requiring 'find'
Implement 'find' internally.
2011-11-04 10:53:47 -04:00
Colin Walters 5cfc66496c Delete link-file builtin - it's kind of pointless 2011-11-04 09:26:45 -04:00
Colin Walters 2d9d7454ee parallel-debian: Update for ostree changes 2011-11-03 23:12:01 -04:00
Colin Walters d6b3fb5118 core: Take --repo as the first argument
I kept doing this over and over...it feels more natural.  The "prefix"
thing was (almost) unused anyways, and it was easy enough to replace.
2011-11-03 23:08:28 -04:00
Colin Walters 3b61a21c0f tests: Add some more tests of compose content 2011-11-03 22:35:42 -04:00
Colin Walters 69f104c558 core: Make compose its own builtin
This will allow more flexibility down the line.
2011-11-03 22:32:06 -04:00
Colin Walters d23f203108 core: Add ostree checkout --compose
This allows merging e.g. multiple artifact trees into one big tree.
2011-11-03 21:50:00 -04:00
Colin Walters 8bca739315 Some work on ostree-build 2011-11-03 16:25:35 -04:00
Colin Walters 21c7ff74b6 De-recursify source tree 2011-11-02 15:45:32 -04:00
Colin Walters 2b00cf3810 core: add ^ for rev-parse 2011-11-02 13:22:13 -04:00
Colin Walters 796dc7fc57 core: remove stub http backend for now
The plain http pull is probably good enough.
2011-11-02 12:43:25 -04:00
Colin Walters 3ceec68a54 pull: Properly clean up after test 2011-11-01 12:35:50 -04:00
Colin Walters 8f877c5b65 log: Fix a crash 2011-11-01 12:24:34 -04:00
Colin Walters bab31db7ee core: Squash some memory leaks 2011-11-01 12:20:33 -04:00
Colin Walters a897642315 For archive checkouts, actually unpack the packfiles 2011-11-01 10:59:07 -04:00
Colin Walters e125dffbfd misc test fixes 2011-11-01 08:49:01 -04:00
Colin Walters c910f29c00 Consolidate tests
Rather than having a ton of separate tests, be like git and have
a "basic" test that does a lot of the, well, basics.
2011-10-31 22:42:14 -04:00
Colin Walters 8769f4afd8 Switch to big-endian storage for all variant data
This ensures the saved archives are architecture-independent.
2011-10-31 22:41:50 -04:00
Colin Walters a160a2a5fa Add support for pulling from remote archives
This necessitated a large set of changes.

We now support an "archive" mode for repositories.  In this mode,
files are stored "packed" rather than hard linked.  This allows one to
e.g. store an OSTree repository with root-owned files as non-root.  It
is also used as the basis for serving repositories via HTTP.

While doing this I realized that GVariant is endianness-dependent; I
decided to just store all data in big endian.
2011-10-31 20:28:47 -04:00
Colin Walters fd4d25b8c1 parallel-debian: Add .gitignore 2011-10-31 20:22:53 -04:00
Colin Walters 80fcb3b818 checkout: Use ot_util_new_file_for_path 2011-10-31 20:22:34 -04:00
Colin Walters 79cff61ae8 ostree-http-server: Exit when our directory goes away 2011-10-28 16:56:50 -04:00
Colin Walters dc6a355f76 ostree-http-server: New simple HTTP server for tests 2011-10-28 16:26:37 -04:00
Colin Walters d2938ad6cc core: Add "ostree remote add" 2011-10-28 10:25:36 -04:00
Colin Walters ee4edf114b Don't default to "master", require a branch
It doesn't really make sense to have a default branch, since we expect
people to have multiple roots.  Thus, require a branch
specification always.
2011-10-27 21:42:44 -04:00
Colin Walters d145b0426c image: Add /sysroot as a toplevel bind mount to the real root
This allows tools to see and operate on the "real" root conveniently;
for example, ostree clearly needs to operate on /ostree/repo.
2011-10-27 16:59:01 -04:00
Colin Walters cb04d99b76 image: Use rev-parse, not HEAD 2011-10-27 15:44:21 -04:00
Colin Walters dd13d172ef core: Add rev-parse builtin 2011-10-27 15:44:08 -04:00
Colin Walters d0222ce6c8 fsck: Kill unused variable 2011-10-27 15:41:15 -04:00
Colin Walters 7ca1c3d2e7 core: remove HEAD file, use branches instead
HEAD in git describes a working copy, and we don't have those.
Instead, default to a "master" branch.  This also lets us support
multiple branches.
2011-10-27 14:32:05 -04:00
Colin Walters 6924e79e60 run.sh: Don't use grubby here either 2011-10-27 13:02:01 -04:00
Colin Walters f7f620e699 gnomeos-make-image.sh: Some more sanity checks, and don't use grubby
grubby --default-kernel fails on F16; let's just use uname -r which
matches dracut anyways.
2011-10-27 11:15:13 -04:00
Colin Walters 66011a84e5 init: Add branches, tags, refs directories like git 2011-10-26 22:37:23 -04:00
Colin Walters ac99188c23 core: Add a config file with repo version
This should let us expand later.
2011-10-26 22:21:00 -04:00
Colin Walters 1aac09fee9 TODO: Some updates 2011-10-26 22:19:46 -04:00
Colin Walters 0c568ff604 parallel-debian: Rework scripts to not use loopback mounts
It's not necessary and adds a lot of overhead for the build. Instead,
just dynamically make an ext4 image of the fs when booting in QEMU.
2011-10-26 18:42:55 -04:00
Colin Walters d0b3a07cf1 core: Fix checksum for symlinks walking off into uninitialized memory 2011-10-26 18:33:33 -04:00
Colin Walters 0f09ccea22 parallel-debian: Add install and run scripts 2011-10-26 17:16:46 -04:00
Colin Walters 8af2c6fbb8 gnomeos-make-image.sh: Don't copy kernel
There's no point.
2011-10-26 16:33:11 -04:00
Colin Walters a9da340e27 gnomeos-make-image.sh: Take care of downloading and patching dracut 2011-10-26 15:00:04 -04:00
Colin Walters 6f00173ff2 gnomeos-make-image.sh: Check for some dependencies before we run 2011-10-26 14:59:45 -04:00
Colin Walters 12314e4adf One more missing substitution for previous commit 2011-10-26 14:43:50 -04:00
Colin Walters f8b178b452 gnomeos-make-image.sh: Support out of tree ostree 2011-10-26 14:42:58 -04:00
Colin Walters bb833ea347 Add Makefile for ostree_switch_root 2011-10-26 14:40:36 -04:00
Colin Walters 03943c659f Drop glib requrirement to 2.28
This lets it build on more currently-released systems like Fedora 15.
2011-10-26 14:12:13 -04:00
Colin Walters 37bea9f29d configure: Use AC_PROG_LIBTOOL
This apparently helps autoreconf know we're using libtool.
2011-10-26 13:52:42 -04:00
Colin Walters 561b54d7e1 debian-setup.sh: I can log in now 2011-10-26 13:14:05 -04:00
Colin Walters 4d86ee0a1d Pile of work on parallel-debian 2011-10-24 22:02:16 -04:00
Colin Walters ad4ae3c0f1 configure: make missing prototypes an error always 2011-10-21 11:27:40 -04:00
Colin Walters 5146890457 Move triggers into new builtin: ostree run-triggers 2011-10-21 09:55:39 -04:00
Colin Walters 4d39070efd Fix up triggers and gnomeos-make-image.sh
Now both do something.
2011-10-20 17:24:21 -04:00
Colin Walters a2880a6ddd src: Squash some unused variables 2011-10-20 16:30:34 -04:00
Colin Walters 9d8522dfa1 Some initial work on triggers 2011-10-20 16:12:02 -04:00
Colin Walters 629b6293c1 parallel-debian: Just more in progress work... 2011-10-20 16:12:02 -04:00
Colin Walters 8c6bc8e54b TODO: Update 2011-10-20 16:12:02 -04:00
Colin Walters c13d6626e2 ostree.doap: Rename 2011-10-20 16:12:02 -04:00
Colin Walters b7d45436a0 Don't use g_variant_new_from_fixed_array(), it was only added in 2.31
g_variant_new_from_data() works, and actually allows us to avoid
a memdup()/free().
2011-10-20 10:20:51 -04:00
Colin Walters 33232117d5 parallel-debian: More in progress work... 2011-10-19 20:54:28 -04:00
Colin Walters 50b1051ba0 gnomeos-make-image.sh: New script
This uses debootstrap, and sets up the root filesystem like we expect.
Still working on an automated way to download the kernel binary,
initrd, then unpack+modify the initrd.
2011-10-19 20:53:33 -04:00
Colin Walters aa25334286 repo: Only open regular files
Otherwise we'll try to open device files with predictably bad
consequences.
2011-10-19 18:06:06 -04:00