Commit Graph
100 Commits
Author SHA1 Message Date
Colin Walters 2f1490f766 core: Fix a compiler warning 2011-11-27 20:15:07 -05:00
Colin Walters 87547827c8 core: Add ls builtin 2011-11-27 20:10:48 -05:00
Colin Walters 48507624c2 core: Don't default to "master" for show, there is no default branch anymore 2011-11-27 18:46:11 -05:00
Colin Walters 56a9a68993 configure: Actually disable soup-gnome if not found 2011-11-27 18:08:18 -05:00
Colin Walters 1a5994a45c gnomeos: include -dev packages too in -dev image
Otherwise we don't get headers and stuff...
2011-11-27 18:03:22 -05:00
Colin Walters b0b0ffcd61 core: Add asynchronous checksum API, use it in checksum builtin 2011-11-27 17:21:04 -05:00
Colin Walters 8af4a62665 gnomeos: Add basic device files in /dev
So we're more usable in a chroot for compiling software.
2011-11-27 13:12:22 -05:00
Colin Walters ab3efe446d gnomeos: Fetch ostree from file:/// URI
This means anyone not using /src/ostree for the checkout will have
to change it, but it's way less annoying for me not to have to push
changes to git.
2011-11-27 13:08:32 -05:00
Colin Walters ea858ab558 ostbuild: Split nice/logger program out, merge make/makeinstall into one executable 2011-11-27 13:07:33 -05:00
Colin Walters 6cdea44c4b daemon: Allow running as non-root in test mode 2011-11-27 11:34:03 -05:00
Colin Walters 9c4fc94266 gnomeos: Prefix branch names with -yocto to clarify their origin
Also add git to the dev image.
2011-11-25 12:02:03 -05:00
Colin Walters 7d0a8bab6c gnomeos: Add ncurses to base 2011-11-25 12:01:38 -05:00
Colin Walters fd58e16a8d core: Minor code cleanup 2011-11-25 12:01:05 -05:00
Colin Walters fa06a4dcea ostbuild: Rename osbuild to ostbuild, clean up old C files 2011-11-25 12:00:16 -05:00
Colin Walters 3c025e526f core: Ad ot_clear_gvariant(), use it
This saves us a conditional.
2011-11-22 10:20:10 -05:00
Colin Walters 43ae898f65 gnomeos: Make python actually work, install bash by default 2011-11-22 10:03:12 -05:00
Colin Walters 2bee1bbbdf core: A bit more daemon work 2011-11-22 10:02:49 -05:00
Colin Walters aa69aae94e core: Move merge dirs code into gio utils 2011-11-21 15:04:07 -05:00
Colin Walters c117aadc95 core: Stub out a system daemon 2011-11-20 20:55:24 -05:00
Colin Walters ff77a1bd7d gnomeos: Check out both -base and -dev roots
This makes it easier to boot into either.
2011-11-20 20:50:14 -05:00
Colin Walters fb98d0bf24 ostree-init: Also trim trailing newline from arguments
Otherwise the parsed argument is corrupted.
2011-11-20 20:49:45 -05:00
Colin Walters bfd47eb93a TODO: Update 2011-11-20 20:49:15 -05:00
Colin Walters 571787b14e gnomeos: Add -x86 tag to builds
Since later we'll want -x86_64 too.
2011-11-19 14:03:18 -05:00
Colin Walters 1dbf134946 core: Rework argument parsing
Default to /sysroot/ostree/repo when run as root.  Also better
handle the requires-repo flag.
2011-11-19 14:02:21 -05:00
Colin Walters 79eb682cda gnomeos: local-clone into built image
This way we have the whole history in the image, and we can start
to demo things like switching roots, pulling etc.
2011-11-19 10:52:17 -05:00
Colin Walters dce29a984a core: Ensure data is properly initialized
Avoids a crash if we bail early.
2011-11-19 10:45:53 -05:00
Colin Walters a042731673 core: Add local-clone builtin
This is useful for converting between e.g. archive and non-archive
repositories.
2011-11-18 18:50:53 -05:00
Colin Walters b7a45b5815 core: Also chown() after unpacking objects 2011-11-18 18:50:29 -05:00
Colin Walters 7d63ad5ae8 core: Switch to GFile* for unpacking and storing objects 2011-11-18 16:14:01 -05:00
Colin Walters c66474750b core: Expose API to get repository tmpdir 2011-11-18 16:01:28 -05:00
Colin Walters f6ec479f17 core: Rework object iteration API to be GFile based and pass more data
It makes more sense to have e.g. the details of .packfile naming
inside the repo, and pass the expected checksum and type.
2011-11-18 15:21:32 -05:00
Colin Walters 8621eb85b1 core: Skip an unnecessary unlink() call 2011-11-18 09:41:36 -05:00
Colin Walters 7276e2df43 core: Have single "overwrite" flag instead of ignore_exists+force pair
The default is always ignore_exists.  Also port the internals here
to use more GIO code, and stop using *at syscall variants since they're
only useful if used 100%.
2011-11-18 09:37:25 -05:00
Colin Walters 860c3cf502 core: Convert public get_object_path() to GFile* 2011-11-18 09:04:25 -05:00
Colin Walters 9cf15ed151 core: More cleanup of GIO utility API 2011-11-18 08:43:47 -05:00
Colin Walters 231f7ed76c core: Use ot_gfile_ prefix for new local GFile creation function 2011-11-18 08:10:23 -05:00
Colin Walters 6591e586ed core: Remove last user of g_file_new() 2011-11-18 08:02:19 -05:00
Colin Walters 12f2d89174 core: Add checksum builtin
This necessitated reworking things so that builtins can specify no
--repo is required.
2011-11-18 07:29:13 -05:00
Colin Walters 7f64d5cec7 core: Make checksum API also operate on directories 2011-11-18 06:34:54 -05:00
Colin Walters b8cef545d1 core: CHANGE CHECKSUM ALGORITHM, port checksum API to GFile
This commit originally was to port ostree_stat_and_checksum_file() to
GFile*, but I noticed that the checksum code was reading data in host
endianness.  Fix that while we're here.

This invalidates all existing repositories.
2011-11-17 19:32:01 -05:00
Colin Walters 2c2b9c0e00 core: Convert metadata parsing API to GFile 2011-11-17 18:36:57 -05:00
Colin Walters 218684786d core: Use GFile for xattr API 2011-11-17 18:33:26 -05:00
Colin Walters e588a47ba6 gnomeos: Have commit-yocto-build make more assumptions
This is so it's easier to use.
2011-11-17 18:29:32 -05:00
Colin Walters a8735778f0 core: Use ot_gfile_get_path_cached() pervasively
This requires no free() calls and is just better.
2011-11-17 18:23:36 -05:00
Colin Walters 8a24861763 gnomeos: Refactor build so we can have separate runtime/devel images 2011-11-17 13:24:52 -05:00
Colin Walters 8e9b9c59d6 core: Fix pull to actually download files too 2011-11-17 10:40:55 -05:00
Colin Walters ed2be6306d core: Should write remote refs in refs/<remote>/<branch>
Not just refs/<branch>, otherwise multiple remotes conflict.
2011-11-17 10:40:01 -05:00
Colin Walters db9801bff2 core: Allow resolving e.g. "origin/master" as a rev
Also:

* Disallow .. in revs to avoid looking outside where we should be
* Allow resolving empty revs
2011-11-17 10:36:04 -05:00
Colin Walters aa865bbb83 core: Validate file names read from directory variants
In a future where we pull data from remote servers, we don't want
to allow path uplinks.
2011-11-16 23:23:30 -05:00
Colin Walters 4a26be1bef core: diff: Correctly handle files changing type 2011-11-16 23:09:32 -05:00
Colin Walters e759c1cce5 tests: Fix number of tests 2011-11-16 22:51:56 -05:00
Colin Walters c33db03b4c core: Flesh out diff a bit more
Now correctly notices changes to directory metadata (not just
contents).
2011-11-16 22:51:09 -05:00
Colin Walters 115626c264 core: Fix a minor memory leak 2011-11-16 22:51:09 -05:00
Colin Walters 53191e4c8e gnomeos: Some tweaks to image content 2011-11-16 21:47:56 -05:00
Colin Walters 9fb390664a core: Implement diff command 2011-11-16 18:16:41 -05:00
Colin Walters 073aa5973c gnomeos: Mounts work, far fewer boot errors 2011-11-16 12:51:24 -05:00
Colin Walters f51e4ee772 gnomeos: Import copy of initscripts from Poky edison release 2011-11-15 16:31:33 -05:00
Colin Walters 701ba596e4 gnomeos: sysvinit actually runs inside the chroot 2011-11-15 15:19:31 -05:00
Colin Walters 97e82447c6 core: Add --print-packfile argument for show
Just another debugging tool.
2011-11-15 15:16:38 -05:00
Colin Walters d196a47043 core: We actually want rdev, not dev for devices 2011-11-15 15:15:46 -05:00
Colin Walters 5c2709d187 core: Actually delete old libostree 2011-11-15 10:44:23 -05:00
Colin Walters 5b70db8d60 gnomeos: Starting to get something bootable with yocto 2011-11-15 10:44:03 -05:00
Colin Walters 18f0b537a4 build: Move sources into src/ again
This is necessary if we want to build when srcdir == builddir,
otherwise we blow up because "ostree" is a source directory and a
binary.
2011-11-14 15:39:38 -05:00
Colin Walters 9dc6ddce08 core: Another GLib 2.30 build fix 2011-11-14 15:31:53 -05:00
Colin Walters 6e05f78f12 core: Fix build with glib 2.30 2011-11-14 15:26:45 -05:00
Colin Walters e4a8425120 pull: Fix iteration over directories 2011-11-14 15:13:20 -05:00
Colin Walters eae4e879c8 core: Fix uninitialized variable 2011-11-14 15:09:00 -05:00
Colin Walters bcdfe03e72 core: Support being built without libsoup-gnome
While bootstrapping gnomeos, it's really handy if we can be built
without pull support, because libsoup-gnome pulls in a huge set of
dependencies.
2011-11-14 15:08:09 -05:00
Colin Walters 070b2cbb74 gnomeos: Some yocto work 2011-11-13 18:53:14 -05:00
Colin Walters 3d752e9a13 gnomeos: Initial work on switching to Yocto 2011-11-12 19:21:10 -05:00
Colin Walters 0de82378b9 Move debian based bits to debian/ subdirectory
This is in preparation for introducing a Yocto-based variant.
2011-11-12 17:47:12 -05:00
Colin Walters f5cf1a54de Switch to using explicit WARN_CFLAGS
The rationale is documented well in the automake manual.
2011-11-11 06:55:14 -05:00
Colin Walters cd17e9a2a3 osbuild: Version built artifacts 2011-11-11 06:44:22 -05:00
Colin Walters 6e05647875 osbuild: Add some prototype python scripts 2011-11-10 22:12:26 -05:00
Colin Walters 5e7183d8b7 README: Link to schroot and git-annex 2011-11-10 15:21:28 -05:00
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