Commit Graph

3233 Commits

Author SHA1 Message Date
Michael Marineau
a53ff2a03b amis: run build script as normal user
This reduces the awkwardness of passing credentials to the build job.

Replace run.sh with assorted example scripts for prod, master, etc.
2014-07-28 13:14:36 -07:00
Michael Marineau
f6801e6b21 amis: split build/copy and publishing publicly into different steps
For a long time these scripts have always set images as public
regardless of whether the image was a working production image or not.
This may lead users to boot random development images if they happen to
pop up to the top of Amazon's terrible AMI search page.
2014-07-28 13:14:36 -07:00
Michael Marineau
ee1840fe04 Merge pull request #309 from marineam/cloudstack
feat(vm_image_util): CloudStack support
2014-07-24 17:50:09 -07:00
Petr Hosek
95e5912b14 feat(vm_image_util): CloudStack support
Provide initial support for CloudStack.
2014-07-24 17:47:57 -07:00
Michael Marineau
9b18163577 Merge pull request #308 from marineam/hack
onmetal: Replace boot_kernel's args
2014-07-24 12:01:35 -07:00
Michael Marineau
3ee48fac14 onmetal: Replace boot_kernel's args
The console should be on ttyS4 and just in case blacklist mei.
2014-07-24 11:57:57 -07:00
Michael Marineau
4c88c69412 Merge pull request #307 from marineam/fix-loop
build_package: fix loop between two loop breaking steps
2014-07-23 15:46:15 -07:00
Michael Marineau
a518dc8df1 build_package: fix loop between two loop breaking steps
If util-linux has a binary package it will be used, but if that binary
package has +udev it will pull in systemd. systemd has a loop that needs
to be broken too so if the util-linux loop breaker doesn't also handle
the systemd one it all falls apart.

In short the comment above the loop breaker code noting that we can try
this until it gets wonky. Well, it is wonky and we need to re-do how
build_packages works as a result. This is just a temporary workaround
until we figure out a larger restructuring.
2014-07-22 14:49:52 -07:00
Michael Marineau
aac815e449 Merge pull request #306 from marineam/fail
setup_board: fix fetching binary toolchain packages
2014-07-22 14:20:54 -07:00
Michael Marineau
e19de29cda setup_board: fix fetching binary toolchain packages
Fix 98684560 which in turn tried to fix 0d29e735. This time the option
to download binary packages was lost so building from scratch worked but
not the normal usage of using binary packages. *sigh*
2014-07-22 14:11:18 -07:00
Michael Marineau
4ca4b65dba Merge pull request #303 from marineam/fixes
Toolchain build fixes
2014-07-22 12:44:41 -07:00
Alex Crawford
abf24663a2 Merge pull request #305 from crawford/fillings
Pull teeth. Replace with onmetal.
2014-07-21 20:44:36 -05:00
Alex Crawford
712c1a3d9b Pull teeth. Replace with onmetal. 2014-07-21 18:40:36 -07:00
Michael Marineau
4b359375d7 Merge pull request #304 from marineam/hostname
qemu: set DHCP hostname based on image name and version
2014-07-21 18:32:08 -07:00
Michael Marineau
2a004f0081 qemu: set DHCP hostname based on image name and version
Provides an easy way to test this setting hostname from DHCP, most other
systems rely on it.
2014-07-21 16:43:48 -07:00
Michael Marineau
986845608a setup_board: fix compiling toolchains from scratch
Commit 0d29e735 broke this by not properly initializing the toolchain
ebuild flags when binary packages were disabled.
2014-07-20 21:32:53 -07:00
Michael Marineau
859cea0306 build_library: fix compatibility with latest crossdev version 2014-07-20 21:32:53 -07:00
Michael Marineau
946797f5d9 Merge pull request #302 from marineam/dev
Developing in dev images
2014-07-19 21:00:39 -07:00
Michael Marineau
f9e03a8e6f build_image: add repos.conf and binpkgs url to dev images
Needed for portage 2.2. Sync URIs are included but not very useful yet
because portage only can do `git pull` but not `git clone`. An extra
helper script will be required to do the initial clone it seems.

Binary packages may be useful for re-installing a package with a
different INSTALL_MASK. Can be used to install debug symbols.
2014-07-19 19:20:51 -07:00
Michael Marineau
07cb281d6a build_image: install the complete system package set in dev images
dev images, now with fancy tools like `make`!
2014-07-19 17:29:05 -07:00
Michael Marineau
a28a8966e4 build_image: use dev and prod profile variants
Instead of gluing in a special PROD_INSTALL_MASK for all images use
profiles to configure the differences between the base build root,
production images, and developer images. This offers much more
flexibility and is needed for providing a full dev environment in
developer images.
2014-07-19 17:17:28 -07:00
Michael Marineau
4d3c198161 tools: remove support for parallel_emerge
Using parallel_emerge has been disabled by default for all commands
except build_image for quite a while now, build_image kept it just
because it was still a bit faster than normal emerge. Keeping
parallel_emerge complicates future changes to build_image so it needs to
drop it entirely. Since that means nothing uses it by default we might
as well just rip out support for it entirely.
2014-07-19 16:38:17 -07:00
Michael Marineau
3d8948d91f setup_board: copy portage's repos.conf files from the chroot 2014-07-19 16:10:34 -07:00
Michael Marineau
5446f7f06a Merge pull request #301 from marineam/dev
Fixes/cleanups for package building
2014-07-19 15:27:43 -07:00
Michael Marineau
097196a6af build_packages: break dependency loop between util-linux and systemd.
This is required to enable the udev use flag.
2014-07-19 15:07:00 -07:00
Michael Marineau
dea299312e setup_board: remove extra pkg-config wrapper script
crossdev provides cross-pkg-config which respects $SYSROOT so we do not
need to do anything extra ourselves.
2014-07-19 11:37:03 -07:00
Michael Marineau
29412584a8 Merge pull request #300 from marineam/ami
ami: configure etcd with public addresses
2014-07-15 12:23:44 -07:00
Michael Marineau
d0d41a185f ami: configure etcd with public addresses
When I created the new AMI build host I just accepted the default
'wizard' security group which seems to have placed the host in a VPC.
There doesn't seem to be a way to fix this and as-is the build host
cannot access the private addresses on the test VMs it launches.
Switching to the public ones work fine though. Didn't notice this at
first because it is only a problem when etcd sends a redirect.
2014-07-15 12:12:43 -07:00
Michael Marineau
7025bd734d Merge pull request #299 from marineam/fix
update_chroot: fix transition to new os-release location
2014-07-14 18:25:17 -07:00
Michael Marineau
4b23a26667 update_chroot: fix transition to new os-release location
Previously /etc/os-release was installed both by set_lsb_release and
the baselayout package. Now it is only installed by set_lsb_release but
when baselayout is upgraded it removes /etc/os-release. So the first
update_chroot works but the second detects the chroot's version
incorrectly and tries to apply the one time updates in this directory.
Both of them are very old so we can just delete them. The second run
will now fix up /etc/os-release and we can all move on and be happy.
2014-07-14 17:59:15 -07:00
Michael Marineau
c9b4e1ff35 Merge pull request #298 from marineam/fix
bootstrap_sdk: setup /usr/lib correctly before calling set_lsb_release
2014-07-14 17:47:54 -07:00
Michael Marineau
1016bb323b bootstrap_sdk: setup /usr/lib correctly before calling set_lsb_release
os-release is now written to /usr/lib but that is likely a symlink to
/usr/lib64 so a little extra logic is required to avoid clobbering the
symlink.
2014-07-14 17:41:18 -07:00
Michael Marineau
2fb518615a Merge pull request #297 from marineam/systemd
Fixes for systemd 215
2014-07-14 16:42:21 -07:00
Michael Marineau
19a4ae59d0 build_library: enable remount-usr later in the boot process. 2014-07-14 15:55:03 -07:00
Michael Marineau
0326b5f57f build_library: move os-release to new location for systemd 215 2014-07-14 15:55:00 -07:00
Michael Marineau
4673c459e5 Merge pull request #295 from marineam/updatectl
core_promote: update from old roller client to updatectl 1.2.0
2014-07-14 13:23:10 -07:00
Michael Marineau
a446114cd9 Merge pull request #296 from marineam/fixami
ami: fix generating ami lists
2014-07-14 11:58:58 -07:00
Michael Marineau
b707b7c628 ami: fix generating ami lists 2014-07-13 20:41:22 -07:00
Michael Marineau
72c59d3927 Merge pull request #294 from marineam/xen
vm_image: switch xen disk format back to raw
2014-07-10 19:21:10 -07:00
Michael Marineau
6489d9f186 core_promote: update from old roller client to updatectl 1.2.0 2014-07-10 17:58:03 -07:00
Michael Marineau
eeec7e1c65 vm_image: switch xen disk format back to raw
VHD was just for testing, raw is more useful for published images.
coreos-install will now be able to install working xen instances:

    coreos-install -d /dev/xvda -o xen -c cloud-config.yml
2014-07-10 17:23:20 -07:00
Michael Marineau
3556632035 Merge pull request #292 from marineam/hvm
ami: support for building HVM AMIs along side PV AMIs.
2014-07-08 11:31:15 -07:00
Michael Marineau
2faa913198 ami: support HVM images in uploaded .txt files 2014-07-08 11:30:35 -07:00
Michael Marineau
3a21cd3eb9 ami: support HVM images in copy script 2014-07-08 11:30:35 -07:00
Michael Marineau
4cd9ed45ff ami: initial support for building HVM AMIs along side PV AMIs.
This just updates the build and test scripts. The copy and upload
scripts still need work to handle the new set of AMIs.
2014-07-08 11:30:34 -07:00
Michael Marineau
1c0de92363 Merge pull request #291 from marineam/path
make_chroot: explicitly set path when entering the chroot.
2014-07-03 15:45:25 -07:00
Michael Marineau
946f730d7f enter_chroot: set reasonable PATH when calling locale-gen 2014-07-03 15:23:18 -07:00
Michael Marineau
a075b1085a make_chroot: explicitly set path when entering the chroot.
The host system's PATH may not be match the one required by the SDK.
When going through the enter_chroot script it gets reset because bash is
invoked as a login shell but this doesn't happen when using the plain
old chroot command.

Fixes https://github.com/coreos/scripts/pull/290
2014-07-03 14:51:32 -07:00
Michael Marineau
5a177c2528 Merge pull request #289 from marineam/cryptsetup
build_packages: break dependency loop when cryptsetup is enabled
2014-07-03 14:32:41 -07:00
Michael Marineau
55896af9c1 build_packages: break dependency loop when cryptsetup is enabled 2014-07-01 16:59:54 -07:00