Commit Graph

3708 Commits

Author SHA1 Message Date
Brandon Philips
bd7d4f4aaa fix(build_library): use https://public.update.core-os.net now
We added a new https certificate on the new update service and changed
the hostname to be consistent with all of the other endpoints. Update
the new images to use this.

The old URL http://public.roller.core-os.net will remain working until
all of the old client have been updated.
2014-04-08 10:54:45 -07:00
Michael Marineau
dd8e7c8be4 Merge pull request #217 from marineam/diskless
fix(vm_image_util): Remove fstab from PXE initrd
2014-04-05 13:43:48 -07:00
Michael Marineau
80cbb49519 Merge pull request #216 from skarllot/master
New script to create VirtualBox VDI
2014-04-05 12:42:56 -07:00
Fabrício Godoy
431d71a90f Fixed authorized_keys file creation
Fix to create .ssh directory before the authorized_keys file.
The option -k renamed to -a to match another scripts.
Added verification if the VBoxManage exists.
2014-04-05 16:16:12 -03:00
Fabrício Godoy
6bdaf88b80 New script to create VirtualBox VDI 2014-04-05 16:11:11 -03:00
Michael Marineau
58bac50d91 fix(vm_image_util): Remove fstab from PXE initrd
Using fstab made overriding it with kernel command line options like
root=/some/disk not work properly. A generator handles it now.
2014-04-04 16:58:43 -07:00
Michael Marineau
1bbe32e17e Merge pull request #215 from marineam/tiger
fix(set_lsb_release): Code name was not epic enough.
2014-04-04 12:31:30 -07:00
Michael Marineau
06e03e912e fix(set_lsb_release): Code name was not epic enough. 2014-04-04 11:32:31 -07:00
Jonathan Boulle
e01a1f70c3 Merge pull request #2 from jonboulle/master
Clean up CONTRIBUTING.md and other bits of template-project
2014-04-04 10:41:40 -07:00
Jonathan Boulle
2e4ea503b0 chore(contributing): clean up CONTRIBUTING.md and split out DCO 2014-04-04 10:40:37 -07:00
polvi
c15791ebea Merge pull request #211 from polvi/iso
feat(iso): add iso image format to image_to_vm
2014-03-31 18:44:46 -07:00
Michael Marineau
26af3bda4b Merge pull request #210 from marineam/roller
fix(core_roller_upload): Assorted minor script fixes.
2014-03-31 18:30:17 -07:00
Alex Polvi
e3156672ce refactor to use _write_cpio_common 2014-03-31 16:08:29 -07:00
Alex Polvi
0d3cd4b417 feat(iso): add iso image format to image_to_vm 2014-03-31 15:49:57 -07:00
Michael Marineau
e2aaed1619 Merge pull request #209 from marineam/pxe
feat(vm_image_util): Add /usr/.noupdate flag file in PXE images.
2014-03-31 14:01:44 -07:00
Michael Marineau
9b8f739fd0 fix(core_roller_upload): Update to new roller HTTPS URL. 2014-03-31 11:18:53 -07:00
Michael Marineau
cd00e6eafe Merge pull request #212 from marineam/gce
fix(vm_image_util): Default to larger vm (8GB) disk layout for GCE
2014-03-29 14:41:14 -07:00
Michael Marineau
17d22228f8 fix(vm_image_util): Default to larger vm (8GB) disk layout for GCE
GCE was using the base 3GB layout which isn't very useful for actual
machines.
2014-03-29 14:22:01 -07:00
Michael Marineau
50bc0ffefd fix(core_roller_upload): Assorted minor script fixes. 2014-03-28 17:46:27 -07:00
Michael Marineau
835cb59837 Merge pull request #208 from marineam/oem
Rework how OEM packages are installed
2014-03-28 17:44:15 -07:00
Michael Marineau
691c588c75 fix(build_packages): Simplify emerge command, use board-packages ebuild.
The extra "dependency check" doesn't appear to be all that useful, so
don't waste time on it. Remove some unused command line options for
selecting which packages to build. Use new board-packages ebuild which
currently just includes 'coreos' and 'coreos-dev' but later can include
extra things like 'python-oem' which doesn't land in the base image.
2014-03-27 22:37:28 -07:00
Michael Marineau
e0cfea50fb fix(vm_image_util): Require OEM packages to be aware of /usr/share/oem
Installing to a temporary directory and then copying over the final
contents of /usr/share/oem allows more complicated OEM packages such as
python to be configured with --prefix=/usr/share/oem while previously
the atypical use of ROOT=/usr/share/oem would have complicated things.
2014-03-27 22:17:32 -07:00
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