30859 Commits

Author SHA1 Message Date
Alex Polvi
20dc12868f add symlink 2013-07-25 15:24:05 -07:00
Michael Marineau
cc0873bbd8 fix(set_lsb_release): Add option for production updates, misc updates.
Add --production_track argument to set_lsb_release and
cros_make_image_bootable to support using the production update service
on developer builds of the 'prod' image. This replaces the previous hack
of setting COREOS_OFFICIAL=1 in the middle of the build.

Since lsb-release doesn't exist prior to the first call to
set_lsb_release switch to sudo_clobber instead of append. That way if it
is called a second time later the contents aren't duplicated.

Write the info to gentoo-release and os-release as well so everything
gets the same information.
2013-07-25 18:14:51 -04:00
Michael Marineau
4cc96fab60 Merge pull request #127 from marineam/sudo
fix(coreos-base/coreos-base): Disable sudo password for core user.
2013-07-25 15:13:27 -07:00
Michael Marineau
7006b267c2 fix(coreos-base/coreos-base): Disable sudo password for core user.
Considering access to production systems will be by ssh keys, not some
developer password, the user doesn't have a password to give sudo.
2013-07-25 15:45:48 -04:00
polvi
8a39a029fa Merge pull request #126 from marineam/zeroconf
fix(profiles): Disable zeroconf use flag globally.
2013-07-25 12:35:50 -07:00
Michael Marineau
8f733efe2f fix(profiles): Disable zeroconf use flag globally. 2013-07-25 15:30:44 -04:00
Alex Polvi
8affc38775 re-add docker starting by default 2013-07-25 12:28:53 -07:00
polvi
36afd6f4e9 Merge pull request #56 from polvi/oem-ami
feat(oem-ami): add oem support for amazon ec2
2013-07-25 12:15:11 -07:00
Greg Kroah-Hartman
16fefb8e54 Merge pull request #123 from marineam/virtio
fix(sys-kernel/coreos-kernel): Enable virtio block device support.
2013-07-25 11:20:02 -07:00
Michael Marineau
211c947145 fix(sys-kernel/coreos-kernel): Enable virtio block device support.
Enable virtual block devices to support qemu drives configured with
if=virtio instead of the default emulated hardware interface. While I'm
at it throw in the virtio scsi module just in case a need for fancier
devices comes along at some point.
2013-07-25 14:08:12 -04:00
Michael Marineau
b2b23fdaf4 Merge pull request #55 from marineam/vm
feat(image_to_vm): Refactor to make adding/changing vm formats easier.
2013-07-25 11:05:42 -07:00
Michael Marineau
9379ee19f0 fix(vm_image_util): Remove space before # comment in qemu config.
Last minute bug slipped in because of a line I commented out since the
current coreos kernel doesn't support virtio block devices (that change
coming soon). Qemu doesn't tolerate any spaces before # in comments.
2013-07-25 13:54:50 -04:00
polvi
6847a2e1bf Merge pull request #122 from philips/oem-ami-round2
Oem ami round2
2013-07-25 10:34:45 -07:00
Brandon Philips
7941c739f4 Merge pull request #54 from philips/use-lsb-coreos
chore(*): use COREOS lsb-release variables
2013-07-25 10:23:24 -07:00
Brandon Philips
6deddda025 Merge pull request #117 from philips/use-lsb-coreos
chore(*): use COREOS lsb-release variables
2013-07-25 10:23:21 -07:00
Michael Marineau
df886c91e7 fix(vm_image_util): Remove tab characters. 2013-07-25 13:16:04 -04:00
Alex Polvi
e073045707 Merge branch 'master' of https://github.com/coreos/coreos-overlay into oem-ami
Conflicts:
	coreos-base/coreos/coreos-0.0.1-r196.ebuild
	coreos-base/coreos/coreos-0.0.1-r199.ebuild
	coreos-base/coreos/coreos-0.0.1-r200.ebuild
	coreos-base/coreos/coreos-0.0.1.ebuild
	coreos-base/oem-ami/files/install-ec2-key.sh
2013-07-25 10:11:34 -07:00
Alex Polvi
3d4a8899e5 feat(coreos-base/oem-ami): add packages to make amis work 2013-07-25 10:11:16 -07:00
Alex Polvi
5982943b4e add scripts 2013-07-25 07:50:45 -07:00
Alex Polvi
d5befd8097 add ebs script 2013-07-24 21:32:29 -07:00
Brandon Philips
6ca5830ac8 Merge pull request #119 from philips/update-everything-to-use-coreos-lsb-release
chore(*): use COREOS lsb-release variables
2013-07-24 20:51:33 -07:00
Michael Marineau
033cf224f1 feat(image_to_vm): Refactor to make adding/changing vm formats easier.
The old script was heading towards spaghetti code realm. This breaks up
all the image variations such as hybrid MBR, OEM packages, etc into
configuration options and small functions that actually do the work.

All this is in the new vm_image_util.sh library but the command line
parsing and overall procedure remains in image_to_vm.sh

As part of this we gain support for putting some qemu options in a
config file as well as Xen virtual machines using pygrub and pvgrub.

Lots of generally unused options have been removed to simplify things
and keep output file names consistent.
2013-07-24 23:11:50 -04:00
Brandon Philips
fa976e84fd chore(*): use COREOS lsb-release variables
update these ebuilds to use the COREOS lsb-release variables

coreos-installer/coreos-installer
cros-devutils/cros-devutils
gmerge/gmerge
update_engine/update_engine
vboot_reference/vboot_reference
2013-07-24 19:14:25 -07:00
Brandon Philips
58bef67e6e Merge pull request #118 from marineam/fixinst
fix(sys-kernel/bootengne): Include missing dependency, code update.
2013-07-24 18:57:04 -07:00
Michael Marineau
22ebaa50f8 fix(sys-kernel/bootengne): Include missing dependency, code update.
The module install wasn't noticing the missing dep, should be good now.
2013-07-24 19:23:40 -04:00
Brandon Philips
9421147994 chore(*): use COREOS lsb-release variables
use the COREOS_ variables in /etc/lsb-release
2013-07-24 15:44:24 -07:00
Brandon Philips
b9568f9dce chore(*): use COREOS lsb-release variables
use the COREOS_ variables in /etc/lsb-release
2013-07-24 15:43:26 -07:00
Brandon Philips
98973c403a Merge pull request #116 from philips/install-terminfos
feat(sys-libs/ncurses): initial import
2013-07-24 09:26:46 -07:00
Greg Kroah-Hartman
7626b31cb7 Merge pull request #25 from philips/move-ncurses-to-coreos
chore(sys-libs/ncurses): move to coreos-overlay
2013-07-24 09:18:11 -07:00
Brandon Philips
2c6d7df403 feat(sys-libs/ncurses): initial import
import and add -256color variants of terminals.
2013-07-23 23:58:54 -07:00
Brandon Philips
0a68e01381 chore(sys-libs/ncurses): move to coreos-overlay
we have to tweak this ebuild to add the -256color variants
2013-07-23 23:54:29 -07:00
Brandon Philips
a148ec392d Revert "feat(profiles): unmask udev/systemd/etc"
This reverts commit bc7026fd10d82b8184b6b7d35759bcfecbc5c666.
2013-07-23 10:18:27 -07:00
Greg Kroah-Hartman
ad32826cbd Merge pull request #51 from polvi/oem-rackspace
add rackspace
2013-07-23 10:16:14 -07:00
Greg Kroah-Hartman
e1484f3ad0 Merge pull request #114 from marineam/update-bootengine
Update bootengine
2013-07-23 10:15:06 -07:00
Greg Kroah-Hartman
fa37416a38 Merge pull request #115 from philips/bump-systemd
feat(profiles): unmask udev/systemd/etc
2013-07-23 10:13:49 -07:00
Michael Marineau
31bab93688 Merge pull request #53 from marineam/fixns
fix(enter_chroot): Limit sharing system mount sharing
2013-07-23 10:11:30 -07:00
Brandon Philips
9b2cdc7675 feat(profiles): unmask udev/systemd/etc 2013-07-23 10:03:35 -07:00
Michael Marineau
4e6d93cff3 fix(sys-kernel/bootengine): Use new update-bootengine script in postinst
All the nasties have been polished and hidden away in a new script.
2013-07-23 03:01:44 -04:00
Michael Marineau
30e47c03fd fix(sys-kernel/bootengine): Add all dependencies required by postinst
When building on a fresh board root it is easy for bootengine to die a
silent but horrible death because it was installed before one of the
tools it uses to create or includes in the initird. To avoid this use a
very complete dependency list for both DEPEND and RDEPEND.
2013-07-23 02:41:49 -04:00
Michael Marineau
efa18698a0 fix(enter_chroot): Limit sharing system mount sharing
The existing code seems to assume that the mounts inherited from the
system are private, the Linux default. However on our systems that
clearly isn't the case, all system mounts are set as shared. Considering
all of us have been have been seeing mounts leak out of the SDK despite
cros_sdk creating a new filesystem namespace via unshare I'm guessing
this is a systemd thing.

Instead force all system mounts to 'slave' mode in the SDK namespace so
global changes are still visible but no SDK mounts can leak out.
2013-07-23 01:26:35 -04:00
Michael Marineau
a3da99ab4c Merge pull request #50 from marineam/baselayout
Baselayout
2013-07-22 19:14:42 -07:00
Michael Marineau
1640b28161 Merge pull request #113 from marineam/symlink
fix(profiles): Everyting assumes lib symlinks to lib64, make it so.
2013-07-22 19:14:32 -07:00
Michael Marineau
2ae0c30f4e fix(install_toolchain): Prevent tar from replacing lib symlinks
The cross toolchain doesn't have lib symlinks but this works because it
also doesn't install things to lib. However when this script manually
extracts the toolchain packages to BOARD_ROOT tar includes those empty
directories, replacing the symlinks that were previously there.

Longer term this really needs to go away, whatever build time is saved
by re-using the cross toolchain packages in BOARD_ROOT is not worth this
insane level of complexity it causes...
2013-07-22 21:42:57 -04:00
Michael Marineau
9e31324af1 fix(profiles): Everyting assumes lib symlinks to lib64, make it so. 2013-07-22 21:42:57 -04:00
Michael Marineau
ac931bd088 fix(setup_board): Install baselayout with USE=build
We need to install baselayout with the build use flag as the very first
package in the new board sysroot to ensure the system's directory
structure is created correctly. This should resolve surprise failures
with the bootengine ebuild.
2013-07-22 21:42:57 -04:00
Michael Marineau
be63f41081 fix(make.conf.user): Fix references to old make.conf.user path.
We've moved all of the chroot configs from /etc to /etc/portage but
setup_board was still symlinking to /etc. Fix the path so no one gets
mixed up by the two copies of the same file. Remove unused script that
also used to write to old location.
2013-07-22 21:42:57 -04:00
Brandon Philips
abc38e033b Merge pull request #52 from philips/add-hvc0-to-grub
Add hvc0 to grub
2013-07-22 18:22:02 -07:00
polvi
eeb54df0d8 Merge pull request #112 from philips/bump-init
bump(coreos-base/coreos-init): get the removal of noexec
2013-07-22 18:17:01 -07:00
Brandon Philips
d933790b6f bump(coreos-base/coreos-init): get the removal of noexec
remove noexec on oem. via 1f2cd73df612360c8c1910f6e9ca7bd3732c2dec
2013-07-22 17:52:28 -07:00
Brandon Philips
69803d5ad6 feat(create_legacy_bootloader): add hvc0 on Xen
add console=hvc0 for systems that use pygrub/pvgrub by adding it to the
menu.lst files.
2013-07-22 17:37:51 -07:00