Commit Graph

3233 Commits

Author SHA1 Message Date
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
Brandon Philips
d6b1b47abb coreos: make chroot fixes
Change-Id: I9dc62495136dbbc9e491e7293822348c1a450481
2013-02-14 16:18:56 -08:00
Brandon Philips
11472e5166 common: make safe_umount retry a few times
on Fedora 18 on Gnome 3.0 something is making the first attempt at
unmounting return busy. Unfortunatly, the return code is 32 everytime
so we have to parse the output of umount :( :( :(

Change-Id: I7f94bf6c2059c7e7cb4fb173d9ffbabd59f2b24f
2013-02-14 16:18:56 -08:00
Mike Frysinger
c1fd42203b clean old chromeos-base/chromeos-bsp-null
We are converting virtual/chromeos-bsp to a new style virtual, but we
have to clean out the old one first as it has a PROVIDE= which messes
up the upgrade process.

BUG=chromium-os:38307
TEST=`./update_chroot` uninstalled this pkg for all generic boards
CQ-DEPEND=CL:42188

Change-Id: Ie23bf462a178bf1085a4700155b779e9651ad24d
Reviewed-on: https://gerrit.chromium.org/gerrit/42528
Reviewed-by: Anush Elangovan <anush@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2013-02-04 06:56:09 -08:00
Ryan Harrison
b8bd594130 Add /usr/share/profiling to COMMON_INSTALL_MASK
This directory contains profiling/coverage data that is generated by some
packages during the build process. It should not be installed onto the device,
but we want the data to live on in /build to allow developers to consult it.

BUG=chromium-os:37854
TEST=None, this change will be tested in CL 42339 since it currently has not
     effect

Change-Id: I882fa7a7496db52a72bb8c5409b3715490d95879
Reviewed-on: https://gerrit.chromium.org/gerrit/42499
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Tested-by: Ryan Harrison <rharrison@chromium.org>
2013-02-02 11:48:48 -08:00
Denis Glotov
94b00acd95 Revert "Revert "Extend STATEfull partition to 3Gb in 2gb-rootfs-updatable disk layout.""
This reverts commit 285b5338b8

Change-Id: I19f8238cb55f88b358244c09c32841ad9f79dd3f
Reviewed-on: https://gerrit.chromium.org/gerrit/42457
Tested-by: Denis Glotov <glotov@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Denis Glotov <glotov@chromium.org>
2013-02-01 12:00:17 -08:00
Don Garrett
7b69fb2525 Reorder rootfs partitions to be spinning disk friendly.
Change the order of partitions to given better performance for spinning disks.
However, this change affects all devices, not just those with spinning disks.

We will be able to remove the per-board overrides from several devices if/
when this change is accepted.

BUG=chromium-os:38122
TEST=image_to_live, (Will run trybots, and perform a recovery).

Change-Id: Ibe60e384e0392936f9f8ceb326618951367974df
Reviewed-on: https://gerrit.chromium.org/gerrit/41792
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Don Garrett <dgarrett@chromium.org>
2013-02-01 11:39:24 -08:00
Simran Basi
285b5338b8 Revert "Extend STATEfull partition to 3Gb in 2gb-rootfs-updatable disk layout."
Suspecting this CL is killing devices in the lab: crosbug.com/38483

This reverts commit 38fe561a92

Change-Id: I6a6f0c170d5410de79ad0d2b96c7b9c95046cae4
Reviewed-on: https://gerrit.chromium.org/gerrit/42452
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
2013-02-01 09:03:45 -08:00
Denis Glotov
38fe561a92 Extend STATEfull partition to 3Gb in 2gb-rootfs-updatable disk layout.
This is needed for vmtests to have enough space, because default size,
although expandable, is too small in vm images.

BUG=chromium-os:38088
TEST=cbuildbot x86-generic-asan amd-64-generic-asan --remote -g I07d31d8b -gI18fab01e -gI9f55fcd3

Change-Id: I9f55fcd3707859dca8304b8e0c78ebd39afea566
Reviewed-on: https://gerrit.chromium.org/gerrit/42390
Tested-by: Denis Glotov <glotov@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Denis Glotov <glotov@chromium.org>
2013-02-01 02:33:54 -08:00