aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix indentation nit.Glen Barber2014-11-241-2/+2
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274946
* In vm_extra_install_packages(), only bootstrap pkg(8)Glen Barber2014-11-241-2/+7
| | | | | | | | | | | | | if VM_EXTRA_PACKAGES is empty. In vm_extra_pre_umount(), cleanup downloaded packages if pkg(8) was bootstrapped earlier. Inspired by: cperciva Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274945
* Revert r274773, after I *specifically* objected to this changeGlen Barber2014-11-213-12/+19
| | | | | | | | | numerous times. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274775
* Change how packages are installed into VM images: Rather than chrootingColin Percival2014-11-213-19/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | into the image and running 'pkg install' from there, use 'pkg fetch' to download packages into a temporary location and then 'pkg add' to install them into the image. This simplifies the code by avoiding the need to copy /etc/resolv.conf into the image and then delete it later, and makes it possible to cross build (e.g., to create an amd64 image when running on i386 hardware; or in the future for building disk images for embedded platforms). Because pkg was implicitly installed when VM_EXTRA_PACKAGES was non-empty, add it to VM_EXTRA_PACKAGES in azure.conf and openstack.conf to maintain the current behaviour. By default repo-FreeBSD.sqlite is copied into the image, (a) to match previous behaviour, where the file would be downloaded by the chrooted pkg invocation; and (b) because it may be useful for testing purposes, e.g., to see why a package didn't get installed. Because this file is large (46 MB) and not likely to be useful in -RELEASE images which are being launched into Clouds several months later, it can be disabled by setting NOREPOSQLITE. As far as I know this commit does not change the disk images produced in any filesystem-visible way. Notes: svn path=/projects/release-vmimage/; revision=274773
* Add NOSWAP option which can be set by a vmimage.conf file to specify thatColin Percival2014-11-211-4/+9
| | | | | | | | | no swap space should be created in the image. This will be used by EC2 builds, since FreeBSD/EC2 allocates swap space on "ephemeral" disks which are physically attached to the Xen host node. Notes: svn path=/projects/release-vmimage/; revision=274771
* Merge duplicative vm-CLOUDTYPE targets before additional duplication getsColin Percival2014-11-201-18/+9
| | | | | | | added by the impending arrival of ec2 and gcloud. Notes: svn path=/projects/release-vmimage/; revision=274734
* Unmount filesystem and destroy md before we read the vnode from disk andColin Percival2014-11-201-1/+1
| | | | | | | | package it into a disk image. Otherwise we end up packaging an unclean filesystem. Notes: svn path=/projects/release-vmimage/; revision=274729
* Silence errors when umounting the chroot's /dev, since it probably doesn'tColin Percival2014-11-191-2/+2
| | | | | | | | | exist when we're running this. Unmount filesystems before attempting to destroy the md which holds them. Notes: svn path=/projects/release-vmimage/; revision=274726
* In vm_install_base(), copy the host resolv.conf intoGlen Barber2014-11-193-0/+8
| | | | | | | | | | | | | | the build chroot before attempting to do anything that requires working DNS (i.e., pkg bootstrap). In vm_extra_pre_umount(), remove the resolv.conf before the disk image is unmounted from the backing md(4). Reported by: cperciva Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274725
* Set the boot partition type to 'apple-boot' for powerpc.Glen Barber2014-11-141-1/+1
| | | | | | | | Submitted by: jhibbits Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274533
* Remove a stray directory from CLEANFILES.Glen Barber2014-11-101-1/+0
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274356
* Call cleanup() after everything is done.Glen Barber2014-11-081-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274297
* Change path for mk-vmimage.sh from ${TARGET}/ toGlen Barber2014-11-081-17/+11
| | | | | | | | | | | | scripts/ now that it is consolidated into one file. Fix paths for the base image and output disk image files. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274296
* mount(8) and umount(8) devfs(5) as needed.Glen Barber2014-11-081-0/+6
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274292
* Fix scheme flag to mkimg(1).Glen Barber2014-11-081-2/+2
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274288
* Fix line continuation in write_partition_layout().Glen Barber2014-11-081-6/+2
| | | | | | | | | Remove variable test that is no longer needed. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274287
* Spell 'OPTARG' correctly.Glen Barber2014-11-081-1/+2
| | | | | | | | | Actually call vm_create_base(). Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274285
* Move usage() from vmimage.subr to mk-vmimage.sh,Glen Barber2014-11-082-6/+6
| | | | | | | | | in case vmimage.subr has not been sourced. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274284
* Fix DESTDIR for installworld, and make sure it is createdGlen Barber2014-11-081-3/+6
| | | | | | | | | before use. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274283
* Add vm_extra_pre_umount() prototype to vmimage.subr.Glen Barber2014-11-081-0/+7
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274282
* Add CLEANFILES entry for VM targetsGlen Barber2014-11-081-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274281
* Return if vm_create_disk() is unsuccessful.Glen Barber2014-11-081-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274280
* Add write_partition_layout() used to populate theGlen Barber2014-11-071-13/+27
| | | | | | | | | | | | | | | | | | | final image. Fix duplicated mkimg(1) call in vm_create_disk(). Add primitive (untested) PowerPC/PowerPC64 VM image support. Note: As it is currently written, the /boot/pmbr and /boot/{gptboot,boot1.hfs} use the build host and not the target build. Fixing this is likely going to be a hack in itself. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274211
* Initial rewrite to consolidate VM image build scripts into one.Glen Barber2014-11-0510-896/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There may be some very sharp edges here while refactoring. - Move amd64/mk-vmimage.sh -> scripts/mk-vmimage.sh. - Remove vm-base target from Makefile.vm. - In vm-image target, use getopts flags for argument passing. - Create tools/vmimage.subr, containing default and prototype for the following functions that are used to drive the build, run in this order: vm_install_base() vm_extra_install_base() vm_extra_install_packages() vm_extra_install_ports() vm_extra_enable_services() vm_extra_pre_umount() vm_create_disk() vm_extra_create_disk() - In tools/azure.conf, override: vm_extra_install_base() vm_extra_pre_umount() vm_extra_create_disk() - In tools/openstack.conf, override: vm_extra_install_base() vm_extra_pre_umount() Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274134
* Add examples for WITH_CLOUDWARE to release.conf.sample.Glen Barber2014-11-042-1/+14
| | | | | | | | | Add WITH_CLOUDWARE evaluation to RELEASE_RMAKEFLAGS. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274071
* Add a 'vm-cloudware' target, used to drive allGlen Barber2014-11-031-0/+2
| | | | | | | | | targets in CLOUDTARGETS. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274070
* Add line continuation so OPENSTACKCONF is actually includedGlen Barber2014-11-031-1/+1
| | | | | | | | | in the env(1). Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274069
* Uncomment the cloudinit rc.conf(5) line.Glen Barber2014-11-011-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=273944
* Fix output file name for openstack images.Glen Barber2014-10-292-2/+2
| | | | | | | | | | | No further conversion is necessary for this VM file target, so there is no need to append the '.raw' suffix here. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=273836
* Initial commit providing a mechanism to createGlen Barber2014-10-294-1/+329
| | | | | | | | | | | | | | openstack images as part of the release build. This mimics the way Microsoft Azure images are built, with the addition of installing the net/cloud-init package and adding a (commented) rc.conf(5) entry for cloudinit. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=273833
* Remove a few vestiges of passing an exit code toGlen Barber2014-10-292-4/+4
| | | | | | | | | panic(). Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=273826
* Avoid hard-coding the Azure image file format.Glen Barber2014-10-293-4/+6
| | | | | | | | | | While here, avoid using OSRELEASE for the output file name. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=273825
* Add glue to allow enabling building cloud providerGlen Barber2014-10-292-8/+19
| | | | | | | | | | | | | | | | VM images by default. When WITH_CLOUDWARE is not empty, add CLOUDTARGETS to the release/Makefile 'release' target. CLOUDTARGETS is generated from the contents of CLOUDWARE, which should be a list of all supported target providers. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=273824
* Move virtual machine / cloud provider targets andGlen Barber2014-10-292-50/+58
| | | | | | | | | options from release/Makefile to their own Makefile. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=273823
* Reintegrate head@r273095Glen Barber2014-10-142752-31498/+260980
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=273097
| * Merge the following from ^/projects/release-vmimage:Glen Barber2014-10-142-16/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r272436, r272437, r272792: r272436: Remove the first argument to panic(), which was initially intended to be the exit code, however when a non-zero exit code was returned to release/Makefile, this would prevent any remaining (and possibly successful) stages from being attempted. r272437: If the vm-base target fails, prevent the vm-image target from being run since it cannot possibly succeed. r272792: Add /usr/local/bin and /usr/local/sbin to PATH, needed if third-party software needs to use utilities outside of the base system during post-install stages (indexinfo is one culprit). MFC after: 3 days X-MFC-10.1: yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273093
| * opt_mrouting.h isn't needed anymore.Andrey V. Elsukov2014-10-141-1/+1
| | | | | | | | | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=273092
| * Add more ifdefs. SIOC*_IN6 are defined only with INET6.Andrey V. Elsukov2014-10-141-0/+6
| | | | | | | | | | | | | | | | MFC after: 1 month Reported by: bz Notes: svn path=/head/; revision=273091
| * Move memset under ifdef INET6.Andrey V. Elsukov2014-10-141-1/+1
| | | | | | | | | | | | | | | | MFH: 1 month Reported by: bz Notes: svn path=/head/; revision=273090
| * Uncomment general options from the Pandaboard config. These are in otherAndrew Turner2014-10-141-3/+3
| | | | | | | | | | | | | | configs and there is no reason for them not to be here. Notes: svn path=/head/; revision=273089
| * Add support for the __aeabi_c*cmp* functions. These are similar to theAndrew Turner2014-10-148-1/+337
| | | | | | | | | | | | | | | | | | | | | | | | existing functions with the exception they use the condition flags to store the result. Differential Revision: https://reviews.freebsd.org/D872 Silence from: current@ and numerics@ MFC after: 1 week Notes: svn path=/head/; revision=273088
| * Overhaul if_gif(4):Andrey V. Elsukov2014-10-147-1016/+609
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o convert to if_transmit; o use rmlock to protect access to gif_softc; o use sx lock to protect from concurrent ioctls; o remove a lot of unneeded and duplicated code; o remove cached route support (it won't work with concurrent io); o style fixes. Reviewed by: melifaro Obtained from: Yandex LLC MFC after: 1 month Sponsored by: Yandex LLC Notes: svn path=/head/; revision=273087
| * Make the ti_padstate_devmap arrays ststic, they are only used with theAndrew Turner2014-10-142-2/+2
| | | | | | | | | | | | | | file where they are defined. Notes: svn path=/head/; revision=273086
| * New sentence -> new line; use macros where appropriate.Christian Brueffer2014-10-141-4/+11
| | | | | | | | Notes: svn path=/head/; revision=273081
| * Remove couple Copan's vendor-specific mode pages.Alexander Motin2014-10-146-563/+0
| | | | | | | | | | | | | | | | Those pages are highly system-/hardware-specific, the code is incomplete, and so they hardly can be useful for anybody else. Notes: svn path=/head/; revision=273075
| * Some groundwork for later Informational Exceptions support.Alexander Motin2014-10-144-8/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes support for: - Read-Write Error Recovery mode page; - Informational Exceptions Control mode page; - Logical Block Provisioning mode page; - LOG SENSE command. No real Informational Exceptions features yet. This is only a placeholder. Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=273073
| * Add LBPERE mode bit definition.Alexander Motin2014-10-142-2/+4
| | | | | | | | Notes: svn path=/head/; revision=273072
| * Rename awk(1) implementation of GNU awk's built-in asorti() function toDevin Teske2014-10-143-6/+6
| | | | | | | | | | | | | | | | | | | | | | prevent fatal conflict should one-true-awk ever be replaced -- e.g., in an appliance -- with GNU awk. NB: Renamed my implementation to _asorti() MFC after: 3 days X-MFC-to: stable/10, stable/9 Notes: svn path=/head/; revision=273068
| * Fix awk(1) asorti() implementation to work when called in a loop.Devin Teske2014-10-143-2/+7
| | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10, stable/9 Notes: svn path=/head/; revision=273067
| * Import patch from libc++ r197313 which allows using libc++ headers with gccBaptiste Daroussin2014-10-131-0/+1
| | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D942 Reviewed by: imp Notes: svn path=/head/; revision=273066