Commit Graph

3233 Commits

Author SHA1 Message Date
Michael Marineau
a78c5fb665 fix(vm_image_util): Keep most partitions mounted read-only.
This ensures that the only partition being modified is OEM.
2014-03-27 21:52:40 -07:00
Michael Marineau
a6328f7c2b feat(vm_image_util): Add /usr/.noupdate flag file in PXE images.
This can be used by update_engine as a quick test to determine if it is
running on a system that it can handle. This avoids needing something
like the 'coreos.diskless' kernel command line flag.
2014-03-27 15:41:41 -07:00
Brandon Philips
7b6e547751 Merge pull request #206 from philips/fixup_core_upload_update
feat(core_roller_upload): initial commit
2014-03-26 05:56:20 -07:00
Brandon Philips
42770b6c00 feat(core_roller_upload): initial commit
TODO: get rollerctl releases installed in here too.
2014-03-26 05:55:26 -07:00
Michael Marineau
893ca360dd Merge pull request #207 from marineam/fix
fix(vm_image_util): Do not generate a machine UUID.
2014-03-25 19:54:17 -07:00
Michael Marineau
11aabd7bd0 fix(vm_image_util): Do not generate a machine UUID.
If QEMU is given a uuid systemd will detect that and in turn use it for
the machine-id. This made the bug causing the machine-id to be always
re-generated on boot harder to notice since it didn't happen on QEMU.
2014-03-25 14:23:23 -07:00
Michael Marineau
c489d2f7c8 Merge pull request #196 from marineam/no_kexec
feat(vm_image_util): Add qemu_no_kexec image type
2014-03-24 14:48:55 -07:00
Michael Marineau
5ddaeb074b Merge pull request #205 from marineam/binhost
fix(toolchain_util): Correct default binhost ordering.
2014-03-24 11:33:27 -07:00
Michael Marineau
dc1b3e32e9 fix(toolchain_util): Correct default binhost ordering.
Later hosts in the list override earlier hosts so the current version
must be listed after the older sdk version.
2014-03-24 11:17:26 -07:00
Michael Marineau
0a4e6716b4 Merge pull request #204 from marineam/prune
add(prune_images): Add a little script to clean up build directory
2014-03-23 20:19:48 -07:00
Michael Marineau
7c0e821953 Merge pull request #202 from marineam/pxe
PXE images
2014-03-23 20:19:41 -07:00
Michael Marineau
9d7945df93 add(prune_images): Add a little script to clean up build directory 2014-03-23 20:07:45 -07:00
Michael Marineau
5357390bb6 Merge pull request #203 from marineam/vhd
VHD disk images
2014-03-23 18:29:50 -07:00
Michael Marineau
934675d19b fix(build_image): Add auto-enter-chroot call
This makes build_image and image_to_vm behave like build_packages, where
if you call the script outside of the SDK's chroot it will automatically
reexecute itself inside of the chroot.
2014-03-23 20:17:05 -04:00
Michael Marineau
0a8f178002 feat(vm_image_util): Support other disk formats with Xen, such as vhd. 2014-03-23 17:15:36 -07:00
Michael Marineau
d4d06cfe57 feat(vm_image_util): Add new Rackspace target with VHD disk images. 2014-03-23 16:31:09 -07:00
Michael Marineau
5ab320d317 fix(vm_image_util): Fix typo in README 2014-03-23 11:43:36 -07:00
Michael Marineau
066bd23df8 feat(vm_image_util): Rework the qemu wrapper script to work for PXE
Now the script can be used with a disk image or a kernel/initrd.
Using a disk with the PXE kernel should work too but haven't tried it.
2014-03-22 22:28:10 -07:00
Michael Marineau
e151a33cee fix(vm_image_util): Fix building squashfs for /usr
Taking a bit of a new approach to booting PXE images here for both
amd64-generic and amd64-usr. Instead of requiring the user to specify
squashfs and tmpfs on the kernel command line we can simply provide
defaults in the initrd's fstab.
2014-03-22 22:23:40 -07:00
Michael Marineau
68af44d961 fix(oem/ami): Fix uploading AMI id files, broken by a55f566b. 2014-03-22 15:19:07 -07:00
Michael Marineau
441a982a39 fix(vm_image_util): Disable installing oem-pxe
It only installed /usr/share/oem/oem-release which we no longer use.
2014-03-22 14:27:48 -07:00
Michael Marineau
81367903bf fix(vm_image_util): Package up /usr for pxe images. 2014-03-22 14:27:48 -07:00
Michael Marineau
99948ab983 Merge pull request #201 from marineam/sdk
fix(make_chroot): Simplify chroot user creation.
2014-03-21 20:04:56 -07:00
Michael Marineau
3e39c612eb fix(make_chroot): Simplify chroot user creation.
The commands useradd/usermod will silently skip adding users to
secondary groups that are not in /etc/group. The idea being that the
tools should not create groups that conflict with existing LDAP/NIS
groups but why trying to do so isn't a fatal error I don't know.

Overall the code is rather complicated and tries to modify instead of
add when possible to allow running the SDK as the 'core' user. To keep
things simple gut this code, make the 'core' user special, and add
secondary groups via the 'gpasswd' command so that errors are reported
instead of silently ignored.

One functional change: the default groups have changed to kvm and
portage. The old list excluded kvm and included lots of extra cruft.
2014-03-21 19:46:32 -07:00
Michael Marineau
dd5bb055ec Merge pull request #200 from marineam/ami
fix(oem/ami): Add support for building release AMIs for amd64-usr
2014-03-21 10:26:07 -07:00
Michael Marineau
02425ef63e fix(oem/ami): Explicitly start etcd and fleet. 2014-03-21 09:19:56 -07:00
Michael Marineau
a55f566b40 fix(oem/ami): Add support for building release AMIs for amd64-usr 2014-03-20 17:28:09 -07:00
Michael Marineau
26b5865b73 Merge pull request #199 from marineam/syslinux
fix(build_image): Switch to SYSLINUX for our EFI bootloader.
2014-03-19 20:39:35 -07:00
Michael Marineau
e59e366770 Merge pull request #197 from marineam/release-files
cleanup(set_lsb_release): Rework release config setup
2014-03-19 20:39:08 -07:00
Michael Marineau
9d073452ed fix(build_image): Switch to SYSLINUX for our EFI bootloader.
Now with SYSLINUX 6 we can use the same bootloader on EFI and BIOS
systems. This replaces our previous reliance on building default kernel
options into the kernel image itself.
2014-03-19 17:53:00 -07:00
Brian Waldon
8a5f6f3d07 Merge pull request #198 from bcwaldon/virtualbox-mac
fix(vagrant): pad vagrant mac to six characters
2014-03-19 17:17:38 -07:00
Brian Waldon
899e7ddebe fix(vagrant): pad vagrant mac to six characters 2014-03-19 17:03:24 -07:00
Michael Marineau
8244c7a260 cleanup(set_lsb_release): Rework release config setup
- Remove custom COREOS_* attributes from /etc/lsb-release
- Move dev image logic to dev_image_util
  For extra fun fix detection of local host URL for devserver.
- Remove weirdly verbose "DESCRIPTION" format.
- Add COREOS_RELEASE_BOARD back to /usr/share/coreos/release
  This is mostly just so update_engine and gmerge report the correct
  board name to devserver, informative-only on prod images.
- Remove version info from /etc/gentoo-release
- Switch from 'track' to 'group' terminology.
2014-03-19 15:56:21 -07:00
Michael Marineau
e2536ad76f feat(vm_image_util): Add qemu_no_kexec image type
This makes it easy to test booting without kexec on qemu/kvm similar to
how images are booted on Xen.
2014-03-18 15:07:09 -07:00
Michael Marineau
c3efd9b622 Merge pull request #194 from marineam/name
fix(set_lsb_release): Bear Creek Manor
2014-03-14 11:06:05 -07:00
Michael Marineau
ee207599af fix(set_lsb_release): Bear Creek Manor 2014-03-14 10:53:59 -07:00
Brandon Philips
87de0fa5df Merge pull request #192 from philips/no-https-on-roller-yet
fix(build_library): use http until we get certs on roller
2014-03-13 14:13:50 -07:00
Brandon Philips
d71aab28df fix(build_library): use http until we get certs on roller 2014-03-13 14:08:37 -07:00
Brandon Philips
d68b8ece3f Merge pull request #191 from philips/relative-link
Fixup all of the symlinks in set_lsb_release
2014-03-13 12:29:41 -07:00
Brandon Philips
98393b7a21 fix(build_library): mkdir /usr/share/coreos in the right order
This is important otherwise things fail to create files because the
directoreis don't exist.
2014-03-13 12:18:33 -07:00
Brandon Philips
6620d7a5a7 fix(build_library): put lsb-release in usr too 2014-03-13 12:08:50 -07:00
Brandon Philips
ed19e9f559 fix(build_library): use ln -sf instead of if
we don't need an if statement when we can force.
2014-03-13 12:05:33 -07:00
Brandon Philips
9ce005cf88 fix(build_library): make the usr link relative
Fix the problem of: "pecified switch root path %s does not seem to be an
OS tree. /etc/os-release is missing" because dracut doesn't have an
/usr/share/coreos/os-release file.
2014-03-13 12:04:10 -07:00
Greg Kroah-Hartman
96172f7f20 Merge pull request #190 from gregkh/os-release
set_lsb_release bugfix and os-release movement
2014-03-13 04:07:16 +00:00
Greg Kroah-Hartman
1d6d1f7539 feat(build_library) move os-release to /usr/share/coreos/ 2014-03-13 03:14:02 +00:00
Greg Kroah-Hartman
9ee59adf6f fix(build_library) fix the build breakage from previous amd64-user change 2014-03-13 03:13:12 +00:00
Greg Kroah-Hartman
9b300e6240 Merge pull request #189 from philips/new-update-files
fix(build_library): create /usr/share/coreos files
2014-03-13 02:50:52 +00:00
Brandon Philips
03c152a519 hack(build_library): support amd64-usr
Make special defaults for amd64-usr
2014-03-12 19:28:46 -07:00
Brandon Philips
b8fe368087 fix(build_library): create /usr/share/coreos files
create the basic files in /usr/share/coreos that should exist
2014-03-12 18:45:51 -07:00
Michael Marineau
54ad9b0565 Merge pull request #188 from marineam/syslinux
feat(disk_util): Switch from SYSLINUX's gptmbr.bin to mbr.bin
2014-03-12 18:44:39 -07:00