Brandon Philips
77882c7653
Merge pull request #4 from marineam/update_ebuilds
...
add(update_ebuilds): A little script for fetching upstream ebuilds.
2013-06-20 21:06:50 -07:00
Michael Marineau
38f81b7b4e
add(update_ebuilds): A little script for fetching upstream ebuilds.
...
Meant to add this last week... It can either pull from Gentoo CVS or a
local directory (in case you rsynced the whole portage tree). Just name
a package by pkg-cat/name and it will update portage-stable.
2013-06-20 23:27:25 -04:00
Brandon Philips
c8ab4dde26
Merge pull request #2 from marineam/nspawn
...
feat(boot_nspawn): Add wrapper script for booting via systemd-nspawn
2013-06-08 19:39:38 -07:00
Michael Marineau
18da78bdf9
feat(boot_nspawn): Add wrapper script for booting via systemd-nspawn
...
This script will boot the build target root via systemd-nspawn which is
a mighty bit faster than building and booting vm images. :)
Note: systemd-nspwan doesn't do anything special for networking so port
conflicts for things like sshd are to be expected. Works though. :)
2013-06-08 21:48:47 -04:00
Brandon Philips
e549c05dc3
Merge pull request #1 from marineam/boot-cleanup
...
feat(build_image): Record directories installed in stateful_partition
2013-06-06 13:39:56 -07:00
Michael Marineau
dcd7b8e990
fix(gen_tmpfiles): Add trailing newline
2013-06-06 14:22:40 -04:00
Michael Marineau
31dbe34f10
feat(build_image): Record directories installed in stateful_partition
...
During builds var_overlay is always mounted over /var. We want to do the
same at run time but we also want to ensure everything expected to be
there always does. After emerge completes gen_tmpfiles.py will scan /var
for any .keep files that were installed and records their parent
directories' permissions and ownership to /usr/lib/tmpfiles.d. On each
boot systemd will automatically recreate anything that goes missing.
This also means that going forward any ebuild that needs a directory in
/var (or anywhere else the stateful partition is bound) can simply rely
on the 'keepdir' ebuild function instead of adding things to
coreos_startup.
2013-06-06 14:18:52 -04:00
Brandon Philips
2378e0294f
fix(core_update_dev_track): make the transaction the right way
...
the transaction was backwards meaning the update hit the db before the
upload was complete. Just swap it around.
2013-05-30 04:22:04 -07:00
Brandon Philips
37953e039b
fix(core_update_developer_track): fix docs and a bug
...
The UUID changed for CoreOS. Make sure we use our own shiny UUID.
Add a doc note that the update should be generated from the "template
image" not from one of the vm images.
2013-05-29 21:59:03 -07:00
Brandon Philips
75fff35514
fix(mount_gpt_image): fixup mount options
...
mount was getting upset about the additional -o flag. Fix it up so that
ro gets appended to the other mount options.
2013-05-19 17:25:49 -07:00
Brandon Philips
a6df1edaea
fix(cros_image_to_target): don't patch_kernel
...
CoreOS doesn't have a Kernel partition, don't try to run with
patch_kernel
2013-05-19 17:23:40 -07:00
Brandon Philips
4057d5590d
feat(disk_layout): follow new CoreOS partition layout
...
As outlined here we need a new partition layout, this patch makes the
necessary changes:
https://groups.google.com/forum/#!topic/coreos-dev/bA7gwGGoTng
The first big change is making all of the scripts obey partition numbers
based on labels in the disk_layout.json. This makes it much easier to
change later on.
The second big change is in the layout itself. The json file was updated
to reflect the document above.
And finally the grub boot configuration needed for pv-grub and pygrub
were added to the create_legacy_bootloader_templates.sh library utlity.
Everything seems to work and boot now.
2013-05-12 12:31:03 -07:00
Brandon Philips
be7a09d64d
feat(image_to_vm): setup grub/menu.lst for xen
...
xen requires a /boot/grub/menu.lst for pygrub and pvgrub on partition 1.
Put it on the stateful partition for now and come back around and fix
this up when we redo the partition layout.
2013-05-03 18:34:45 -07:00
Brandon Philips
edf40e1863
fix(build_library/legacy_bootloader): add menu.lst entries
...
these entries are needed for pvgrub, pygrub. Add them!
2013-05-03 18:17:21 -07:00
Brandon Philips
386ac79bd6
feat(build_library/container): more fixes
...
this sets up the container to a reasonable level. I stopped using this
container tool after I the dev server got up and running so YMMV.
2013-04-30 18:39:09 -07:00
Brandon Philips
1af100bc04
feat(core_update_developer_track): upload developer track build
...
a utility to make uploading the developer-track from an SDK easier.
Usage can be found by simply running the command with no arguments.
2013-04-30 18:30:32 -07:00
Brandon Philips
b274a41f11
fix(image_to_vm): cleanup qemu-kvm output
...
- have the command use -curses to save people hassle on ssh sessions
- forward ssh too
- clean formatting up a bit
2013-04-25 08:47:59 -07:00
Brandon Philips
6bb635d51c
hack(build_container): add a script to build containers
...
this is a bit of a hack but I wanted to see if it had any utility during
development before making it all pretty. Essentially this is a copy of
build_image but instead of building up an entire image it simply puts
the files into directories on disk to be ran with systemd-nspawn/lxc/etc
2013-03-11 18:55:27 -07:00
Brandon Philips
7d9acd0de1
Revert "fix(dev_util): restore removed code from dev_util"
...
so it is a bit complicated but essentially gtest pulls in python which
pulls in pyton-updater which wants portage so portage gets installed in
teh real root not the dev one. Just leave it for now.
2013-03-07 11:32:19 -08:00
Brandon Philips
2f5399b103
fix(sdk_lib/make_chroot): make using prebuilt sdk work
...
fix a couple of buglets related to using a prebuilt sdk chroot
2013-03-06 17:04:40 -08:00
Brandon Philips
81e546cb0b
fix(setup_board): copy /etc/make.conf.host_setup from /etc/portage
...
this stuff lives in etc/portage. Cp from there.
2013-03-06 14:02:43 -08:00
Brandon Philips
ffbe6a1a66
fix(image_to_vm): add correct ports for kvm instructions
2013-02-28 10:47:06 -08:00
Brandon Philips
8a60480ff2
fix(dev_util): restore removed code from dev_util
...
93ed764 accidently removed some code, restore it.
2013-02-27 18:50:29 -08:00
Brandon Philips
93ed76460b
feat(build_library): let python into root image
...
python allows systemd-analyze to work and gives a full portage stack.
Just let it in.
2013-02-26 08:00:40 -08:00
Brandon Philips
95798bbf33
fix(sdk_lib/make_chroot): fix git bash completion
...
Move this code to after we emerge git and bashcomp. Fixes 6df18385
2013-02-24 14:53:53 -08:00
Brandon Philips
728dfdae01
fix(sdk_lib/make_chroot.sh): use efunctions functions.sh
...
use the efunctions package for the /etc/init.d/functions.sh script
instead of backing up the old function.sh which doesn't work with the
new baselayout
2013-02-24 14:52:21 -08:00
Brandon Philips
6df1838526
fix(sdk_lib/make_chroot): enable git-prompt
...
shutup the errors about git_ps1 not existing
Change-Id: Ie157e4322a770efe7536aefaf34ea7d62c472f68
2013-02-22 07:40:08 -08:00
Brandon Philips
9f544e77a2
fix(build_library): cleanup kernel cmdline
...
don't be quiet, talk on tty0, and remove unneeded args
Change-Id: I6d49d0b119528ecb8082d38e77066691039092cb
2013-02-20 09:32:07 -08:00
Brandon Philips
5ff06e1bfd
chore(sdk_lib): chromeos -> coreos renames
...
Change-Id: I803a9670f87093088ec693fabd64585ee83bfb6a
2013-02-16 11:45:51 -08:00
Brandon Philips
0516fa7771
fix(sdk_lib/make_chroot): remove early git
...
emerging git seems to work fine, remove this early git hack
Change-Id: I1ec6a45724be292ce00d803e9161413c67804469
2013-02-16 11:44:48 -08:00
Brandon Philips
27a45c57c1
hack(sdk_lib/make_chroot.sh): save functions.sh
...
we remove openrc which provides /etc/init.d/functions.sh. Unfortunatly
other things rely on this file. Stash it away in /tmp/ then restore it
for now.
Change-Id: I18a59e05ecdf08cc8a560b29049c8d25ac1bf5a3
2013-02-16 11:31:14 -08:00
Brandon Philips
f40133ceac
hack(build_library/base_image_util.sh): don't zero fs
...
the math is wrong here as a build will often fail with "disk full". Fix
this.
Change-Id: Ib812991b584816862f0c72aeec79bebf37e214ba
2013-02-16 11:29:40 -08:00
Brandon Philips
4fa2b2b365
fix(build_packages): Fully comment out the packages
...
Change-Id: I8f9466b3a90374fe72181996803401e01d501ed5
2013-02-15 07:03:58 -08:00
Brandon Philips
a85c3f9167
fix(build_library/test_image_content.sh): Remove Xorg requirement
...
Remove Xorg and chrome, we don't ship those in coreos
Change-Id: Id3ffadda31c31e0d6afdc18738d2ed46fc41b537
2013-02-15 06:59:58 -08:00
Brandon Philips
78e2afafea
fix(build_library/disk_layout_util.sh): unmount rootfs
...
Sometimes during the buildprocess we get here and the rootfs is still mounted?!
Change-Id: I6dc044d9d1318be606c1645f925421fa84c1f513
2013-02-14 16:26:48 -08:00
Brandon Philips
005de74765
fix(build_library/dev_image_util): use coreos
...
remove dev-init stuff for now and use coreos
Change-Id: I3f55550d197e3045eb26ea46fb9792d7c35dd5ab
2013-02-14 16:18:57 -08:00
Brandon Philips
9191f32d77
fix(test_build_root): fix tests for coreos
...
remove chrome and Xorg test
Change-Id: I6fe575954a8110c6bd94cbe7874b2cbea90def45
2013-02-14 16:18:57 -08:00
Brandon Philips
12302b05e2
fix(build_packages): renames of chromeos->coreos
...
Change-Id: I0187f90aae97ba1060639aeee60c32288e7c47ad
2013-02-14 16:18:57 -08:00
Brandon Philips
67488b3986
hack(make_chroot): hack to get scripts working
...
einfo and friends are needed and chrome scripts expect them to be in /etc/init.d/functions.sh
Change-Id: I3ca36892d73cdbb80d9a843e863ab5063f24eeb4
2013-02-14 16:18:56 -08:00
Brandon Philips
69e94f001e
fix(make_chroot): get openssh and python 2.6 installed
...
new stage3 tarballs have python 3. Get python 2.6 installed and reemerge openssh
Change-Id: I903bbb4251534e9a1428d9773a57f2cf0602816f
2013-02-14 16:18:56 -08:00
Brandon Philips
5bfbf31423
chore(setup_board): chromeos -> coreos
...
Change-Id: If9bb62dacd603775ff599df28b40d92e9f762cee
2013-02-14 16:18:56 -08:00
Brandon Philips
6789da97fc
chore(build_image): chromeos -> coreos
...
Change-Id: I8023c038d7019b55115aaa45487ebb7b9927c239
2013-02-14 16:18:56 -08:00
Brandon Philips
56fd29c640
chore(build_packages): use coreos not chromiumos
...
Change-Id: I2efe4b0c93ca9044aaa284c5c81d62db3e9f1b46
2013-02-14 16:18:56 -08:00
Brandon Philips
6a362d27f9
fix(make_chroot): use the new places for make.conf
...
make.conf should live in /etc/portage these days
Change-Id: I55372ae3ee6a4ae7abf6873c08c1fcef46d7cd53
2013-02-14 16:18:56 -08:00
Brandon Philips
474313e651
fix(make_chroot): use the portage openssl for now
...
portage's openssl is up to date, no need to fork it for now.
Change-Id: Ib2a03811803ecf4626813706f6ef79ad4b1956f3
2013-02-14 16:18:56 -08:00
Brandon Philips
e5aeefeb2b
chore(update_chroot): chromeos -> coreos
...
Change-Id: Ib8ab7afcc7bb0a1bcc5db7a7beef1c50df170610
2013-02-14 16:18:56 -08:00
Brandon Philips
bf893c277f
fix(make_chroot): default to using python 2.7
...
the stage3 has python3 which is terrible, don't do that.
Change-Id: I24f82c8eb59ff7c2953033d233d32bb0f959d8da
2013-02-14 16:18:56 -08:00
Brandon Philips
2f17a00183
chore(make_chroot): chromeos to coreos renames
...
Change-Id: I5f2b4fae96df91dd7d6d01cc393cebc3af011660
2013-02-14 16:18:56 -08:00
Brandon Philips
472ab7b202
fix(make_chroot): don't remove files that dont' exist
...
These files don't exist in the gentoo stage3, don't try and remove them.
Change-Id: Ie158b4989540482751cbb4de0ee8ef88e4f49759
2013-02-14 16:18:56 -08:00
Brandon Philips
c91cefb941
feat(make_chroot): use a new gentoo stage3
...
Change-Id: I6364212989ca0723fd78f4658369d6becd47b4bd
2013-02-14 16:18:56 -08:00