Commit Graph

3708 Commits

Author SHA1 Message Date
Michael Marineau
3fdd2033dc enter_chroot: fix chroot root bind command
Commit 09851b84 didn't do a recursive bind by mistake, so if the host
system has anything mounted under the chroot directory for some reason
the bind would hide those mounts. Recursive ensures existing mounts
remain exposed as they did before.
2015-12-15 16:40:00 -08:00
Michael Marineau
2b43e553e3 Merge pull request #490 from marineam/bind-root
enter_chroot: ensure the chroot's root directory is a mount point
2015-12-15 16:34:01 -08:00
Michael Marineau
09851b8460 enter_chroot: ensure the chroot's root directory is a mount point 2015-12-15 16:30:27 -08:00
Michael Marineau
7147ab1746 Merge pull request #489 from marineam/glibc
enter_chroot: skip calling locale-gen if it isn't installed
2015-12-15 11:50:28 -08:00
Michael Marineau
863dda280f enter_chroot: skip calling locale-gen if it isn't installed 2015-12-10 11:33:57 -08:00
Nick Owens
1093592e4d Merge pull request #488 from mischief/update-ebuilds-underscore
update_ebuilds: allow underscore, needed for app-misc/c_rehash
2015-12-03 14:05:44 -08:00
Nick Owens
95fba29797 update_ebuilds: allow underscore, needed for app-misc/c_rehash 2015-12-03 14:03:34 -08:00
Michael Marineau
dca121d83f Merge pull request #487 from marineam/sdk
build_image: fix generation of version.txt
2015-12-02 13:03:18 -08:00
Michael Marineau
f6064d52e8 build_image: fix generation of version.txt
The generation of version.txt was the only thing depending on sourcing
the deprecated BUILD, BRANCH, and PATCH values from version.txt which
common.sh no longer does since 0b6acf86. Derive them instead.
2015-12-02 12:32:34 -08:00
Michael Marineau
37a2a0319a Merge pull request #486 from marineam/sdk
enter_chroot: always bind $GNUPGHOME to the default path
2015-12-01 14:44:35 -08:00
Michael Marineau
ec58813496 enter_chroot: always bind $GNUPGHOME to the default path
The path of $GNUPGHOME outside the chroot may not really make sense
inside the chroot. Although that's probably not a big deal there's no
need to keep the outside value. Instead just bind it to the usual spot.
2015-12-01 14:34:43 -08:00
Michael Marineau
a20129cafb Merge pull request #485 from marineam/sdk
common: set properly COREOS_SDK_VERSION
2015-12-01 12:50:34 -08:00
Michael Marineau
14646f7900 common: set properly COREOS_SDK_VERSION
Broken in 0b6acf86 when we started selectively reading version.txt
2015-12-01 12:46:01 -08:00
Michael Marineau
14ada5cfe7 Merge pull request #483 from marineam/jenkins
Updates for jenkins builds
2015-12-01 12:03:13 -08:00
Alex Crawford
8726e115b4 Merge pull request #484 from crawford/nixos
sdk_lib: cleanup to support non-standard environs
2015-12-01 09:14:24 -08:00
Alex Crawford
47d237ecab sdk_lib: cleanup to support non-standard environs 2015-11-30 18:15:42 -08:00
Michael Marineau
0b6acf8605 common: add support for using COREOS_BUILD_ID from the environment
This allows build systems to export COREOS_BUILD_ID, making it practical
to map built images to the job that created them.
2015-11-30 09:29:24 -08:00
Michael Marineau
39a3a48a18 enter_chroot: add support for passing through GNUPGHOME
When running under jenkins the $GNUPGHOME may be located under the
current build directory instead of $HOME to avoid conflicting with other
jobs on the same build host.
2015-11-29 14:05:08 -08:00
Michael Marineau
7cea7f4d6f Merge pull request #481 from marineam/prune
prune_images: keep newer-than-latest builds
2015-11-24 14:03:46 -08:00
Michael Marineau
9a138677a8 prune_images: keep newer-than-latest builds
This may include recent failures or builds derrived from latest, such as
those made by image_set_group.
2015-11-24 13:40:09 -08:00
Geoff Levand
57c129acfd setup_board: Call setup_qemu_static
setup_qemu_static only needs to be called once, and can
be done early so that it is available.  Move the call
of setup_qemu_static from build_packages to setup_board.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-11-19 15:08:00 -08:00
Geoff Levand
63679ebbe1 setup_board: Set grub use flags to build arm64
Set the host grub use flags to build arm64 grub support when BOARD is
equal to arm64-usr.

From: Andrej Rosano <andrej@inversepath.com>
[Move to case statement]
Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-11-19 15:08:00 -08:00
Michael Marineau
c353bc083b Merge pull request #477 from marineam/env
common: don't get env list from chromite
2015-11-18 16:20:32 -08:00
Michael Marineau
6b1a7e7b3b common: don't get env list from chromite
This call to a python script is merely used to get a static list of
environment variables that happens to be defined in that repo.
2015-11-18 16:09:27 -08:00
Alex Crawford
f0be34f4dd Merge pull request #476 from crawford/gpg
oem/azure: verify GPG signature of image
2015-11-12 11:52:33 -08:00
Alex Crawford
eb5a53cc7a oem/azure: verify GPG signature of image 2015-11-12 11:44:48 -08:00
Vito Caputo
1d02acec7c Merge pull request #475 from vcaputo/always_disable_console_blanking
grub: disable console blanking
2015-11-11 15:53:02 -08:00
Vito Caputo
0b9c8e5855 grub: disable console blanking
The console often contains very useful information in the event of a
hard crash, in such situations there's no ability to unblank the console
via keypress because the kernel won't handle the interrupt.

Since CoreOS is a server/cluster operating system, there won't generally
be monitors connected benefitting from a blanked console.  Disabling the
blanking altogether allows the frame buffer contents to always be
visible, even when the kernel can't handle keypresses.
2015-11-11 15:22:12 -08:00
Michael Marineau
9f0fb176fd Merge pull request #474 from marineam/kernel
kernel_menuconfig: new script to simplify kernel config changes
2015-11-11 10:20:01 -08:00
Michael Marineau
b0c14f99b1 kernel_menuconfig: new script to simplify kernel config changes 2015-11-10 18:06:49 -08:00
Vito Caputo
a9c2ef6c61 Merge pull request #471 from vcaputo/grub_supply_guid_to_randomize
grub: supply disk guid to randomize in coreos.randomize_disk_guid
2015-11-06 14:59:10 -08:00
Vito Caputo
f67fa9ce6c grub: supply disk guid to randomize in coreos.randomize_disk_guid 2015-11-06 14:58:00 -08:00
Vito Caputo
822edbd080 Merge pull request #469 from vcaputo/explicitly_randomize_disk_guid
grub: add and set coreos.randomize_disk_guid kernel param
2015-11-05 23:14:56 -08:00
Vito Caputo
68f1b407c6 grub: add and set coreos.randomize_disk_guid kernel param
coreos.first_boot=1 will no longer trigger disk-guid randomization, so
manual ignition triggers in diskless/pxe scenarios may succeed.  Instead
we explicitly request the randomization when first_boot=1 was added by
grub finding the 00000000-0000-0000-0000-000000000001 disk-guid.
2015-11-05 21:04:31 -08:00
Nick Owens
1f05a4ef79 Merge pull request #467 from dolfdijkstra/master
Fixed typo on URI for DEFAULT_ETCD_DISCOVERY.
2015-10-27 01:07:36 -07:00
Dolf Dijkstra
f25b4df253 Fixed typo on URI for DEFAULT_ETCD_DISCOVERY.
It missed a colon after https.
2015-10-27 08:27:03 +01:00
Michael Marineau
c0ff1b2965 Merge pull request #466 from marineam/share
ami: automatically grant access to AMIs for testing
2015-10-23 10:19:30 -07:00
Michael Marineau
efc460b4e6 ami: automatically grant access to AMIs for testing 2015-10-22 22:14:06 -07:00
Alex Crawford
f958ff3072 Merge pull request #465 from crawford/oem
grub: add oem_id variable to kernel parameters
2015-10-21 17:02:31 -07:00
Alex Crawford
f7bcd4f547 grub: add oem_id variable to kernel parameters 2015-10-21 16:47:58 -07:00
Michael Marineau
6ee030b4f5 Merge pull request #462 from marineam/cmdline
grub: move standard kernel options to grub
2015-09-21 16:05:45 -07:00
Michael Marineau
01ae17dcc9 grub: move standard kernel options to grub
In order to boot properly we need `rootflags=rw mount.usrflags=ro` on
the command line. These have been build into the kernel directly but for
arm64 builds the built in options seem to be ignored.
2015-09-21 15:31:41 -07:00
Michael Marineau
a1b2c90192 Merge pull request #461 from andrejro/for-upstream-image_to_vm
Add arm64 qemu image support
2015-09-21 09:07:57 -07:00
Andrej Rosano
8ba400eca7 Add arm64 qemu image support
Allows image_to_vm.sh to build also arm64 qemu images.

Signed-off-by: Andrej Rosano <andrej@inversepath.com>
2015-09-17 14:16:18 +02:00
Michael Marineau
99987eedcd Merge pull request #460 from coreos/philips-patch-1
ROADMAP: remove strudel
2015-09-16 14:13:32 -07:00
Brandon Philips
1b4048676c ROADMAP: remove strudel
We have de-emphasized strudel and are concentrating on testing/release/ignition for now. Remove it for the roadmap.

cc @pbx0
2015-09-16 12:53:05 -07:00
Michael Marineau
28a4f807e4 Merge pull request #458 from andrejro/for-upstream-bootengine-grub
Support for arm64 target ramdisk and arm64 grub modules
2015-09-16 10:31:42 -07:00
Andrej Rosano
16feac5ef6 Add arm64 grub installation support
Add the necessary variables in grub.cfg and populate the EFI
partition with arm64 efi executable and modules.

Signed-off-by: Andrej Rosano <andrej@inversepath.com>
2015-09-16 15:13:08 +02:00
Andrej Rosano
acea447ccd build_packages: Fix ramdisk creation for non-native arches
Chrooting in the target non-native arch rootfs is required
for update-bootengine to be run correctly.

Signed-off-by: Andrej Rosano <andrej@inversepath.com>
2015-09-16 12:41:23 +02:00
Andrej Rosano
21925e99d4 common.sh: add arm64 chroot utility functions
By copying and removing the relevant qemu static executable the
functions enable and disable the chroot environment for arm64 rootfs.

Signed-off-by: Andrej Rosano <andrej@inversepath.com>
2015-09-16 12:41:12 +02:00