Commit Graph

7221 Commits

Author SHA1 Message Date
gjb
4b6acf881a Document r282089, unbound(8) update to 1.5.3.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:37 +00:00
gjb
6043136310 Document r279122, netstat(1) updated to use libxo(3).
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:35 +00:00
gjb
d6ec19f13f Document r273562, libxo(3) import.
Add Juniper Networks to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:32 +00:00
gjb
27341016bc Fix CROCHETBRANCH, forgotten in r280640.
Submitted by:	ruben.kerkhof@gmail.com
PR:		199760
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-04-28 15:32:59 +00:00
gjb
85852e8ad9 Add the cw-ec2-portinstall target to always install the
net/bsdec2-image-upload port.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-04-27 21:38:12 +00:00
gjb
e60260c0b0 Fix a comment.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-04-27 19:49:50 +00:00
gjb
b89a2746c3 Do not nest the BSD and MBR partitions, which produces
an unbootable image.  Use just an MBR scheme instead.

Sponsored by:	The FreeBSD Foundation
2015-04-27 18:07:11 +00:00
gjb
384815e148 Generate the arm64/aarch64 memstick image as MBR instead of
GPT.

Boot tested by:	andrew
Sponsored by:	The FreeBSD Foundation
2015-04-27 17:39:40 +00:00
gjb
09615c77fe Create the arm64/aarch64 VM disk image as MBR instead of
GPT scheme.  UEFI needs to know the unique partition GUID
with GPT, which changes each time.  Specifically, the QEMU
EFI BIOS file has this hard-coded.[1]

Since the GPT labels are now unavailable, unconditionally
label the root filesystem as 'rootfs' with newfs(8), since
it does not hurt anything anywhere else.  For the arm64 case,
'/' is mounted from /dev/ufs/rootfs; for all other VM images,
'/' is mounted from /dev/gpt/rootfs.

Unfortunately, since the /dev/gpt/swapfs label is also lost,
set NOSWAP=1 for the arm64/aarch64 images.  This is temporary,
until I figure out a scalable solution to this.  But, a certain
piece of softare was written "very fast", and ended up living
for 15 years.  We can deal with this for a week or so.

Information from:	andrew, emaste [1]
Sponsored by:	The FreeBSD Foundation
2015-04-23 01:04:14 +00:00
gjb
00a0d8da10 Remove the gptboot partition from the arm64 memory stick image,
which is not needed/used.

Sponsored by:	The FreeBSD Foundation
2015-04-22 13:52:29 +00:00
gjb
dfb432f9b5 MFH: r280643-r281852
Sponsored by:	The FreeBSD Foundation
2015-04-22 12:58:16 +00:00
gjb
9c99303fe2 Revert r281809, which did more harm than good, and apply
a more proper fix when attempting to locate the /boot
files.

Sponsored by:	The FreeBSD Foundation
2015-04-21 14:48:38 +00:00
gjb
62ee754a89 Simplify variable expansion in attempt to fix the vm-image build.
Sponsored by:	The FreeBSD Foundation
2015-04-21 02:49:44 +00:00
gjb
57622d708f Merge the following from ^/projects/release-arm64 to allow
building FreeBSD/arm64 VM images and memstick.img installation
medium:
r281786, r281788, r281792:

 r281786:
  Add support for building arm64/aarch64 virtual machine images.

 r281788:
  Copy amd64/make-memstick.sh to arm64/make-memstick.sh for
  aarch64 memory stick images.

  Although arm64 does not yet have USB support, the memstick
  image should be bootable with certain virtualization tools,
  such as qemu.

 r281792:

  Add a buildenv_setup() prototype, intended to be overridden as
  needed.

  For example, the arm64/aarch64 build needs devel/aarch64-binutils,
  so buildenv_setup() in the release.conf for this architecture
  handles the installation of the port before buildworld/buildkernel.

Sponsored by:	The FreeBSD Foundation
2015-04-21 00:48:35 +00:00
gjb
90c13eed91 Copy amd64/make-memstick.sh to arm64/make-memstick.sh for
aarch64 memory stick images.

Although arm64 does not yet have USB support, the memstick
image should be bootable with certain virtualization tools,
such as qemu.

Sponsored by:	The FreeBSD Foundation
2015-04-20 20:13:02 +00:00
gjb
aae7c8c171 Add support for building arm64/aarch64 virtual machine images.
Sponsored by:	The FreeBSD Foundation
2015-04-20 20:06:25 +00:00
gjb
d772346661 When building VM disk images, vm_copy_base() uses tar(1) to
copy the userland from one md(4)-mounted filesystem to a clean
filesystem to prevent remnants of files that were added and
removed from resulting in an unclean filesystem.  When newfs(8)
creates the first filesystem with journaled soft-updates enabled,
the /.sujournal file in the new filesystem cannot be overwritten
by the /.sujournal in the original filesystem.

To avoid this particular error case, do not enable journaled
soft-updates when creating the md(4)-backed filesystems, and
instead use tunefs(8) to enable journaled soft-updates after
the new filesystem is populated in vm_copy_base().

While here, fix a long standing bug where the build environment
/boot files were used by mkimg(1) when creating the VM disk
images by using the files in .OBJDIR.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-04-20 19:54:54 +00:00
cperciva
cbabb678ca Add code for creating an EC2 AMI. 2015-04-01 00:00:17 +00:00
cperciva
30e3acf20a It would help if I committed the right patch... 2015-03-31 04:35:35 +00:00
cperciva
2d3f9a1b0b Partially revert r278118 now that the required logic for deciding whether
freebsd-update can be useful has moved into the firstboot_freebsd_update
script.
2015-03-31 01:44:29 +00:00
cperciva
763a23e973 Add bits for building EC2 disk images. Make logic for uploading these
to create EC2 AMIs will come in a later commit.
2015-03-31 01:28:33 +00:00
gjb
b4b14712b0 Sigh. s/AutoSize/Growfs/ following upstream commit r761.
MFH:		3 days
Sponsored by:	The FreeBSD Foundation
2015-03-30 19:08:37 +00:00
cperciva
421e560425 Improve check for whether ${DESTDIR}/dev is mounted.
Submitted by:	gcooper
2015-03-30 09:08:24 +00:00
cperciva
e41362f7d1 Clean up filesystem unmounting in vmimage builds:
* Remove vm_umount_base function which is currently unused.
* Add umount_loop function which loops attempting to unmount one filesystem.
* Replace calls to umount with calls to umount_loop.
* Don't attempt to unmount ${DESTDIR}/dev if it isn't mounted.

The looping is necessary because sometimes umount fails due to filesystems
being busy.  The most common cause of such busyness is periodic(8) jobs
running `find / ...`.

Reviewed by:	gjb
2015-03-30 08:33:19 +00:00
gjb
d80ecfbe72 Attempt to create the final image (though not nearly ready
for it yet).

This is probably very broken and/or wrong, but that's why
we have projects branches.

Sponsored by:	The FreeBSD Foundation
2015-03-26 03:05:07 +00:00
gjb
9bfd469978 Create the md(4) device for the /boot msdosfs GPT partition.
Sponsored by:	The FreeBSD Foundation
2015-03-26 02:19:38 +00:00
gjb
6d23d7d903 Create the md(4) device for the /boot msdosfs GPT partition.
Sponsored by:	The FreeBSD Foundation
2015-03-26 02:02:51 +00:00
gjb
fdbfa0b59a Specify .OBJDIR for consistency.
Call newfs(8) and mount the md(4) device to the target
directory.

Specify DESTDIR for installworld, distribution, and
installkernel targets.

Sponsored by:	The FreeBSD Foundation
2015-03-26 01:20:54 +00:00
gjb
a6a9b12f53 Prevent possible duplicate md(4) creation with separate device id.
Sponsored by:	The FreeBSD Foundation
2015-03-26 01:06:29 +00:00
gjb
663a21825c Fix 'beforeclean' broken in previous commit.
Sponsored by:	The FreeBSD Foundation
2015-03-26 01:03:38 +00:00
gjb
88eca6bced Add glue to make the md(4) device for populating the
userland/kernel.

Clean up a few variable names.

Sponsored by:	The FreeBSD Foundation
2015-03-26 01:00:48 +00:00
gjb
5071a76d5c Add targets for world/kernel build, currently only echoed
for debugging purposes.

Add comment to mark the end of the main loop.

Sponsored by:	The FreeBSD Foundation
2015-03-26 00:07:40 +00:00
gjb
716600ab07 Reindent.
Sponsored by:	The FreeBSD Foundation
2015-03-25 23:29:35 +00:00
gjb
4fa6dd7573 Move the 'build-arm-ports${BOARD}' within the for loop
to fix target/variable expansion.

Sponsored by:	The FreeBSD Foundation
2015-03-25 23:24:05 +00:00
gjb
6681de7bf9 MFH: r278968-r280640
Sponsored by:	The FreeBSD Foundation
2015-03-25 22:35:08 +00:00
gjb
b24b75c074 Crochet sources moved to a new home; update accordingly.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-03-25 22:08:02 +00:00
cperciva
f1bd255f86 When creating VM images, copy the contents of the created filesystem into
a new filesystem before packaging it into a disk image.  This prevents
"remnants" of deleted files from showing up in the VM images, and reduces
their compressed size (by about 10% for the cloudware images) as a result.

Looks good to:	gjb
2015-03-20 19:40:19 +00:00
gjb
32c23d98d1 Document r279663, qsort(3) enhancements.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:53 +00:00
gjb
a112819caa Document r279571, freebsd-update(8) will not download updates when
a previous upgrade is not complete.
Add ScaleEngine Inc to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:50 +00:00
gjb
3c9489579b Document r279463, iovctl(8) rc(8) script.
Add Sandvine Inc to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:47 +00:00
gjb
2d8306c4fd Document r279361, kern.osrelease and kern.osreldate sysctls are
now configurable jail(8) parameters.

Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:43 +00:00
gjb
bd3faa8edf Document r279315, uefisign(8) addition.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:41 +00:00
gjb
2037e417b7 Document r279252, pmap(9) overhaul for 64-bit PowerPC processors.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:38 +00:00
gjb
d01ef1bfbe Document r279189, VSX support.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:35 +00:00
gjb
c2ad88762d Document r279186, setmode(3) set errno on failure.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:32 +00:00
gjb
690cca64c6 Document r278970, acpi(4) update to 20150204.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:29 +00:00
gjb
7665c62d04 Properly evaluate XZ_CMD from the chroot.
Sponsored by:	The FreeBSD Foundation
2015-03-02 18:10:58 +00:00
gjb
9ffc8ca9a2 Use xz(1) to compress FreeBSD/arm images.
Sponsored by:	The FreeBSD Foundation
2015-03-02 18:04:57 +00:00
gjb
1a0d38818e Add a CLOUDPACKAGE variable to contain a list of targets for
post-install packaging cloud provider images.

Add a 'gce-package.sh' script to generate the final output
image ready for upload to the GCE platform.  Right now, this
is the only image that has a specific output format (GNU-tar),
and this implementation is expected to be temporary.

This is not directly connected to the other release targets.

MFC after:	1 week
X-MFC-with:	r279249, r279250
Sponsored by:	The FreeBSD Foundation
2015-02-24 22:27:02 +00:00
gjb
a068ff8444 Remove a stale comment.
MFC after:	1 week
X-MFC-with:	r279249
Sponsored by:	The FreeBSD Foundation
2015-02-24 21:16:57 +00:00
gjb
3bcf3bd6f0 Add 'cloudware-install' target to handle copying cloud
disk images to a directory within DESTDIR.

Add CLOUDINSTALL variable to automatically generate the
actual list of install targets.  While here, rename the
cloud-specific names from 'vm-' to 'cw-' to avoid naming
collisions.

Add AZURE_DISK, GCE_DISK, and OPENSTACK_DISK output file
variables.

Add 'cloudware-install' to the 'install' target.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2015-02-24 21:06:25 +00:00
gjb
04ae1498be Default XZ_THREADS=0, and add to RELEASE_RMAKEFLAGS
so it is passed to the 'release' make(1) target if
it needs to be adjusted to a non-zero integer.

Sponsored by:	The FreeBSD Foundation
2015-02-20 18:51:52 +00:00
gjb
0e2a9d3d0f Fix wording in entry for r278934.
Submitted by:	markj
Sponsored by:	The FreeBSD Foundation
2015-02-20 18:42:00 +00:00
gjb
989552348a Document r275140, pmc callchain depths increased.
Sponsored by:	The FreeBSD Foundation
2015-02-20 18:06:11 +00:00
gjb
4023d6210b Fix a typo in r278037 entry: s/cam/ctl/
Submitted by:	mav
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:56:27 +00:00
gjb
4c2fc40c57 Update the commented last revision.
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:20 +00:00
gjb
4f42c73b33 Document r278926, 'make release' now uses multi-threaded
xz(1).

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:18 +00:00
gjb
830071cefe Document r278433, xz(1) update to 5.2.0.
Separately document multi-threaded support to keep the
version update separate, so it remains correct if xz(1)
is updated again.

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:15 +00:00
gjb
8644fb9e6b Document r278354, ctld(8) update to control non-iSCSI CTL
ports

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:12 +00:00
gjb
e757402c21 Document r278320, devctl(3) and devctl(8) added.
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:10 +00:00
gjb
e4820d4cf3 Add a 'General Storage' section.
Document r278037, CAM LUN mapping rewrite.

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:07 +00:00
gjb
18b6d2f2ab Document r278934, elf(3) dependency removed from dtri.o
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:04 +00:00
gjb
1af0c37f67 Document r277990, powerpc64 kernel now built as
a position-independent executable

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:02 +00:00
gjb
a0e81a4f8b Document r277904, '-s' option added to config(8).
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:45:59 +00:00
gjb
4ea309ffe4 Document r277610, futimens(2) and utimensat(2) added.
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:45:56 +00:00
gjb
0a4b64ead2 MFH: r278593-r278966
Sponsored by:	The FreeBSD Foundation
2015-02-18 19:35:32 +00:00
rpaulo
e0f41bfbfb release: use xz via pipe when compressing the tarballs.
libarchive(3) doesn't support the new liblzma API yet, but this change
allows us to enable multi-threaded xz compression.
``make release'' should now finish in half the time on a machine with
several cores and fast disks (our typical build server).

This behaviour only applies when building a release and it doesn't
affect buildworld/installworld.  To disable threaded xz compression,
set XZ_THREADS=1.

Reviewed by:	gjb
Tested by:	gjb
2015-02-17 23:13:45 +00:00
cperciva
adc74e8335 Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;
update paths; and include everything in the "base" distribution.

The "games" distribution being optional made sense when there were more
games and we had small disks; but the "games-like" games were moved into
the ports tree a dozen years ago and the remaining "utility-like" games
occupy less than 0.001% of my laptop's small hard drive.  Meanwhile every
new user is confronted by the question "do you want games installed" when
they they try to install FreeBSD.

The next steps will be:

2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and
caesar cipher (caesar, rot13) utilities.  I intend to keep fortune, factor,
morse, number, primes, and random, since there is evidence that those are
still being used.

3. Merging src/games into src/usr.bin.

This change will not be MFCed.

Reviewed by:	jmg
Discussed at:	EuroBSDCon
Approved by:	gjb (release-affecting changes)
2015-02-12 05:35:00 +00:00
gjb
14f6e421fa Add a ROADMAP file for FreeBSD/arm release builds, which
will make final documentation much easier when done.

Sponsored by:	The FreeBSD Foundation
2015-02-12 00:50:54 +00:00
gjb
2f97a00223 Fix build-arm-ports target for WANDBOARD-QUAD.
Sponsored by:	The FreeBSD Foundation
2015-02-11 20:51:58 +00:00
gjb
0790752ed0 Add CROSS_TOOLCHAIN for arm builds.
Remove a BOARDS entry left in while testing.
Add build-arm-ports${BOARD} target as a prerequisite when
ARMPORTS is set.
Add build-arm-KERNCONF and build-arm-ports to CLEANFILES.

Sponsored by:	The FreeBSD Foundation
2015-02-11 20:50:25 +00:00
gjb
7e24e21572 Initial restructure for FreeBSD/arm release builds.
Sponsored by:	The FreeBSD Foundation
2015-02-11 20:25:21 +00:00
gjb
ff1fc0651f MFH: r278202,r278205-r278590
Sponsored by:	The FreeBSD Foundation
2015-02-11 18:59:46 +00:00
gjb
91ae04df56 Bump copyright, forgotten in r278502.
MFC after:	1 week
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836, r278118, r278119, r278206,
		r278502
Sponsored by:	The FreeBSD Foundation
2015-02-10 12:38:39 +00:00
gjb
d3b69535ba In scripts/mk-vmimage.sh, prevent incorrect usage() by
defaulting VMCONFIG to /dev/null, and additionally
ensuring VMCONFIG is not a character device before it
is sourced.

While here, be sure to exit if usage() is called.

This should effectively be no-op, but the usage() output
was discovered while investigating a larger issue.

MFC after:	1 week
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836, r278118, r278119, r278206
Sponsored by:	The FreeBSD Foundation
2015-02-10 12:04:38 +00:00
gjb
4bc86263fa Revert r278445.
I was going to use __FreeBSD_version to determine if
xz(1) should be multi-threaded by default, but doing
this will cause problems if/when the changes are merged
from head.

Sponsored by:	The FreeBSD Foundation
2015-02-09 10:46:39 +00:00
gjb
da504cb140 Enable multi-threaded xz(1) compression, after r278433.
Allow multi-threaded xz(1) to be turned off by specifying
NO_XZTHREADS, and allow number of threads to be overridden
by specifying XZ_THREADS=N.

MFC after:	1 week
X-MFC-needs:	r278433
Sponsored by:	The FreeBSD Foundation
2015-02-09 10:42:27 +00:00
gjb
ea9a3d8b68 Define FREEBSD_VERSION in release/Makefile, derived
from sys/sys/param.h.

Sponsored by:	The FreeBSD Foundation
2015-02-09 09:56:21 +00:00
gjb
e0863acde2 Bump copyright year.
Sponsored by:	The FreeBSD Foundation
2015-02-05 16:00:34 +00:00
gjb
4c852b7fe5 Security Advisory information is included on several
pages in the release notes.  Rather than duplicating
the information between various files, add two new
files to include in all pages that currently display
the information.

Sponsored by:	The FreeBSD Foundation
2015-02-05 15:46:01 +00:00
gjb
843b07f861 Add an entity to use to link to SAs and ENs.
Prefer https:// for other URLs.
While here, update release.prev.stable entity to
9.3-RELEASE.

Sponsored by:	The FreeBSD Foundation
2015-02-05 14:08:57 +00:00
gjb
781f145086 Bump copyright after r277458.
MFC after:	2 weeks
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836, r278118, r278119
Sponsored by:	The FreeBSD Foundation
2015-02-04 11:55:32 +00:00
gjb
1a3339d840 Set a VERSION value.
Sponsored by:	The FreeBSD Foundation
2015-02-04 11:45:15 +00:00
gjb
2c9ed945e2 Use ifconfig_DEFAULT="" instead of hard-coding vtnet(4)
MFC after:	2 weeks
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836, r278118
Sponsored by:	The FreeBSD Foundation
2015-02-03 00:10:48 +00:00
gjb
103061b4c4 Move service_enable="YES" rc.conf(5) additions to
VM_RC_LIST and deduplicate.

Evaluate if firstboot_freebsd_update should be enabled
based on UNAME_r, because it is not supported for the
-CURRENT or -STABLE branches.

MFC after:	2 weeks
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836
Sponsored by:	The FreeBSD Foundation
2015-02-03 00:07:54 +00:00
gjb
a582a9a0fe Overhaul the relnotes page to reorganize the sections.
With the previous layout, the majority of the release
notes were categorized under one main "What's New"
section, which in addition to making the page difficult
to parse relevant bits, also had a few rendering issues,
such as 'Note' blocks visually not appearing as if they
pertain to a particular change.

This change removes the "What's New" section, integrating
it with the introduction.  In addition, each section now
provides a brief description of its contents, broken down
further into a subsection for each "topic", making it much
easier to find a specific topic in the page.

MFC after:	3 days
X-MFC-Note:	direct commit, not a merge
Sponsored by:	The FreeBSD Foundation
2015-02-02 21:09:26 +00:00
gjb
1f9287eed9 Move the 'Upgrading from Previous Releases of FreeBSD'
section to the top of the file, following the introduction.

Sponsored by:	The FreeBSD Foundation
2015-02-02 21:09:23 +00:00
hrs
bb5a64d168 Add a toc.section.depth=3 parameter to use the same ToC depth as DocBook
DSSSL stylesheet.

Reported by:	gjb
2015-02-02 16:10:03 +00:00
gjb
007096df0b Fix a typo in a comment.
MFC after:	1 week
X-MFC-with:	r277837
Sponsored by:	The FreeBSD Foundation
2015-01-28 17:39:57 +00:00
gjb
e9d3b0df4a Provide a description for the 'tests.txz' distribution
in the MANIFEST file.

Turn off the test suite installation by default.

Tested with:	head@r277834
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2015-01-28 17:34:27 +00:00
gjb
1260bad08b Rename the 'system' target to 'disc1', which is specific
to the disc1.iso installer image.

Replace 'system' with 'release' in CLEANFILES, and add
'disc1' to CLEANDIRS.

Ensure the 'dvd' target depends on 'packagesystem'.

Fix 'mini-memstick.img' prerequisite, which should be the
'bootonly' target, not 'disc1' (previously 'system').

Use .TARGET as the target installation directory for the
disc1.iso and bootonly.iso images, which now expand to
'disc1' and 'bootonly' respectively, mimicking the behavior
of the 'dvd' target.

Remove '@true' from the 'release' target, and instead use
'touch ${.TARGET}' to prevent multiple iterations of
'make release' from clobbering previously-built installer
medium.

Tested with:	head@r277834
MFC after:	3 weeks
X-MFC-with:     r277458, r277536, r277606, r277609
Sponsored by:	The FreeBSD Foundation
2015-01-28 17:32:45 +00:00
luigi
70c9059ac6 do not strip /stand
This is a temporary workaround until the elftoolchain's version
of strip is fixed:

The previous (GNU) strip, when acting on a file with multiple links,
would modify the one and only file in place (which means creating
a new stripped copy, and then writing it back to the original).

The new version from elftoolchain creates the new file and then
unlinks the old one and renames the new.
With multiple hard links, the original remains alive.  In the /stand
directory, this ends up creating 80+ copies of the same file.
2015-01-24 08:48:05 +00:00
gjb
4743c20fb6 When iterating through VMFORMATS, the VMBASE file is
not removed or truncated to a zero-size file, which
if used to create more than one disk image format, can
result in accidental pollution of the target formatted
disk image.

Instead of using a single VMBASE image (vm.img, by
default), use a single base file for each format, named
as VMFORMAT.img, which produces VMBASE.VMFORMAT as the
final formatted image.

Reported by:	cperciva
MFC after:	1 month
X-MFC-with:	r277458, r277536
Sponsored by:	The FreeBSD Foundation
2015-01-23 21:04:59 +00:00
cperciva
b45ededabb Provide a recipe of "true" for building the "release" target once its
prerequisites are satisfied, in order to avoid having an implicit rule
triggered by the presence of release.sh.

Approved by:	gjb
2015-01-23 20:24:13 +00:00
gjb
c5771a6a64 Update the latest revision.
Sponsored by:	The FreeBSD Foundation
2015-01-23 19:33:46 +00:00
gjb
4a0b24c466 Document r277458, support for cloud hosting providers added to
the Release Engineering build tools.

Sponsored by:	The FreeBSD Foundation
2015-01-23 19:33:08 +00:00
gjb
70100a6ead Document r277166, ptrace(2) Altivec register support.
Sponsored by:	The FreeBSD Foundation
2015-01-23 19:33:05 +00:00
gjb
782ca77682 Document r276881, libedit UTF-8 support.
Sponsored by:	The FreeBSD Foundation
2015-01-23 19:33:03 +00:00
gjb
a74cf6ece6 Rename the 'release' target to 'real-release', and
add two targets, 'vm-release' and 'cloudware-release',
that are invoked if WITH_VMIMAGES and WITH_CLOUDWARE
are not empty.

This fixes an issue where 'make release' would not
build the cloud provider targets because CLOUDWARE was
not yet set. [1]

Move the WITH_VMIMAGES and WITH_CLOUDWARE targets to
Makefile.vm.

Note: There is no 'cloudware-install' target yet, since
some of the disk image names may need to be specific to
the provider, so this is probably best handled by the
build scripts.

Reported by:	cperciva [1]
MFC after:	1 month
X-MFC-with:	r277458
Sponsored by:	The FreeBSD Foundation
2015-01-22 19:43:05 +00:00
gjb
bb3fec85f3 Merge the following revisions from ^/projects/release-vmimage:
r273823-r273826, r273833, r273836, r273944, r274069-r274071,
 r274134, r274211, r274280-r274285, r274287-r274288, r274292,
 r274296-r274297, r274356, r274533, r274725, r274726, r274729,
 r274734, r274771, r274945-r274946, r277180, r277183-r277184,
 r277186-r277187, r277250-r277253, r277263-r277264, r277383-r277384,
 r277393-r277395, r277438-r277439, r277447, r277455:

 r273823:
  Move virtual machine / cloud provider targets and
  options from release/Makefile to their own Makefile.

 r273824:
  Add glue to allow enabling building cloud provider VM images
  by default.

  When WITH_CLOUDWARE is not empty, add CLOUDTARGETS to the
  release/Makefile 'release' target.

 r273825:
  Avoid hard-coding the Azure image file format.  While here,
  avoid using OSRELEASE for the output file name.

 r273826:
  Remove a few vestiges of passing an exit code to panic().

 r273833:
  Initial commit providing a mechanism to create openstack images
  as part of the release build.

 r273836:
  Fix output file name for openstack images.  No further conversion
  is necessary for this VM file target, so there is no need to append
  the '.raw' suffix here.

 r273944:
  Uncomment the cloudinit rc.conf(5) line.

 r274069:
  Add line continuation so OPENSTACKCONF is actually included in the env(1).

 r274070:
  Add a 'vm-cloudware' target, used to drive all targets in CLOUDTARGETS.

 r274071:
  Add examples for WITH_CLOUDWARE to release.conf.sample.
  Add WITH_CLOUDWARE evaluation to RELEASE_RMAKEFLAGS.

 r274134:
  Initial rewrite to consolidate VM image build scripts into one.

 r274211:
  Add write_partition_layout() used to populate the 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.

 r274280:
  Return if vm_create_disk() is unsuccessful.

 r274281:
  Add CLEANFILES entry for VM targets

 r274282:
  Add vm_extra_pre_umount() prototype to vmimage.subr.

 r274283:
  Fix DESTDIR for installworld, and make sure it is created before use.

 r274284:
  Move usage() from vmimage.subr to mk-vmimage.sh, in case vmimage.subr
  has not been sourced.

 r274285:
  Spell 'OPTARG' correctly.  Actually call vm_create_base().

 r274287:
  Fix line continuation in write_partition_layout().
  Remove variable test that is no longer needed.

 r274288:
  Fix scheme flag to mkimg(1).

 r274292:
  mount(8) and umount(8) devfs(5) as needed.

 r274296:
  Change path for mk-vmimage.sh from ${TARGET}/ to scripts/ now that
  it is consolidated into one file.

  Fix paths for the base image and output disk image files.

 r274297:
  Call cleanup() after everything is done.

 r274356:
  Remove a stray directory from CLEANFILES.

 r274533:
  Set the boot partition type to 'apple-boot' for powerpc.

 r274725:
  In vm_install_base(), copy the host resolv.conf into
  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).

 r274726 (cperciva):
  Silence errors when umounting the chroot's /dev, since it
  probably doesn't exist when we're running this.

  Unmount filesystems before attempting to destroy the md which
  holds them.

 r274729 (cperciva):
  Unmount filesystem and destroy md before we read the vnode from
  disk and package it into a disk image.  Otherwise we end up
  packaging an unclean filesystem.

 r274734 (cperciva):
  Merge duplicative vm-CLOUDTYPE targets before additional duplication
  gets added by the impending arrival of ec2 and gcloud.

 r274771 (cperciva):
  Add NOSWAP option which can be set by a vmimage.conf file to specify
  that 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.

 r274945:
  In vm_extra_install_packages(), only bootstrap pkg(8) if
  VM_EXTRA_PACKAGES is empty.

  In vm_extra_pre_umount(), cleanup downloaded packages if pkg(8) was
  bootstrapped earlier.

 r274946:
  Fix indentation nit.

 r277180:
  In vm_extra_install_base(), do not install waagent in the openstack
  image, because it is not used.  This appears to be a copy mistake.

  Remove vm_extra_install_base() from the openstack.conf entirely,
  since it does not need to be overridden.

 r277183:
  Enable the textmode console by default for VM images, since there is
  no way to tell if the environment will be able to use the
  graphics-mode console.

 r277184:
  Enable password-less sudo for openstack images.

 r277186:
  Update the VM_EXTRA_PACKAGES list for the openstack images.

  The documentation suggests doing a "just fetch this and run it"-style
  bootstrap, from which the list of dependencies was obtained (in
  github, at: pellaeon/bsd-cloudinit-installer)

  There is one Python dependency unmet, oslo.config, which is not in
  the Ports Collection.

 r277187:
  Add a comment to note that setting hw.vga.textmode=1 is temporary.

 r277250:
  Remove vm_extra_install_base() for the Azure image, now that the
  waagent exists in the ports tree.

  Add sysutils/azure-agent to the VM_EXTRA_PACKAGES list.

  In vm_extra_pre_umount(), remove the explicit pkg(8) install
  list, as dependencies are resolved by sysutils/azure-agent.

 r277251:
  Add a 'list-cloudware' target to print the list of supported CLOUDWARE
  values and a description.

  Add the AZURE_DESC and OPENSTACK_DESC descriptions.

 r277252:
  Update release(7)

 r277253:
  Add 'list-vmtargets' target, which produces a list of all supported
  VM and cloud provider images.

  Add VHD_DESC, VMDK_DESC, QCOW2_DESC, RAW_DESC image descriptions.

  Format the output to make a bit more readable.

  Update release(7) to document the list-vmtargets target.

 r277263:
  Add initial support for the GCE (Google Compute Engine) cloud hosting
  provider image.

 r277264:
  Style and line length cleanup.

 r277383:
  Remove the console setting from rc.conf(5), which is not used there.
  While here, set console to include vidconsole in the loader.conf(5).

 r277384:
  Fix an indentation nit.
  No functional changes.

 r277393:
  Remove the pkg-clean(8) call from vm_extra_pre_umount() since the
  function is often overridden.

  Add vm_extra_pkg_rmcache() to call pkg-clean(8) to avoid duplicated
  code.

 r277394:
  Move resolv.conf(5) removal back to vm_extra_pre_umount() where it
  belongs.

  The GCE image needs resolv.conf(5) to exist (created as part of the
  image setup), so it cannot be removed.

 r277395:
  Comment the line that configures ttys(5) to 'off', which makes it
  impossible to test that the image boots.

  Add a note explaining why the line is commented, and not (yet) removed
  entirely.

 r277438:
  Move the 'install' bits that are specific to virtual machine images
  from the Makefile to Makefile.vm.

  Rename the 'install' target to 'release-install', and add a new
  'vm-install' target.

  Add a new 'install' target that invokes the new targets.

 r277439:
  Add WITH_CLOUDWARE to the list of make(1) variables for the release
  build.

 r277447:
  Remove hw.vga.textmode=1 from the VM image loader.conf, which was
  included during test builds and not intended to be included when
  merging this project branch back to head.

 r277455:
  Remove mk-azure.sh, which is no longer needed.

MFC after:	1 month
X-MFC-To:	stable/10 (requires mkimg(1))
Help from:	cperciva, swills
Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2015-01-20 23:56:04 +00:00
gjb
2b7d8bc28a Document r277270, OpenSSL update to 1.0.1l.
Sponsored by:	The FreeBSD Foundation
2015-01-16 21:08:04 +00:00
gjb
2f6be49b3a Add initial support for the GCE (Google Compute Engine)
cloud hosting provider image.

Many thanks to swills@ for his work on getting this to
this point.

Submitted by:	swills
Sponsored by:	The FreeBSD Foundation
2015-01-16 19:27:19 +00:00
gjb
2b1b7bc3e7 Add 'list-vmtargets' target, which produces a list of
all supported VM and cloud provider images.

Add VHD_DESC, VMDK_DESC, QCOW2_DESC, RAW_DESC image
descriptions.

Format the output to make a bit more readable.

Update release(7) to document the list-vmtargets target.

Sponsored by:	The FreeBSD Foundation
2015-01-16 17:40:30 +00:00
gjb
17c10aaadc Add a 'list-cloudware' target to print the list of
supported CLOUDWARE values and a description.

Add the AZURE_DESC and OPENSTACK_DESC descriptions.

Sponsored by:	The FreeBSD Foundation
2015-01-16 17:05:35 +00:00
gjb
0d86658a18 Remove vm_extra_install_base() for the Azure image, now
that the waagent exists in the ports tree.

Add sysutils/azure-agent to the VM_EXTRA_PACKAGES list.

In vm_extra_pre_umount(), remove the explicit pkg(8) install
list, as dependencies are resolved by sysutils/azure-agent.

Sponsored by:	The FreeBSD Foundation
2015-01-16 15:37:07 +00:00
gjb
8bf2cea4c9 Add a comment to note that setting hw.vga.textmode=1 is
temporary.

Sponsored by:	The FreeBSD Foundation
2015-01-14 16:42:54 +00:00
gjb
57dffb5c40 Update the VM_EXTRA_PACKAGES list for the openstack
images.

The documentation suggests doing a "just fetch this
and run it"-style bootstrap, from which the list of
dependencies was obtained (in github, at:
pellaeon/bsd-cloudinit-installer)

There is one Python dependency unmet, oslo.config,
which is not in the Ports Collection.

Sponsored by:	The FreeBSD Foundation
2015-01-14 16:27:43 +00:00
gjb
64286bf832 Enable password-less sudo for openstack images.
Sponsored by:	The FreeBSD Foundation
2015-01-14 15:45:18 +00:00
gjb
5107643b94 Enable the textmode console by default for VM images,
since there is no way to tell if the environment will
be able to use the graphics-mode console.

Sponsored by:	The FreeBSD Foundation
2015-01-14 15:23:58 +00:00
gjb
f0d9ad0c85 In vm_extra_install_base(), do not install waagent
in the openstack image, because it is not used.  This
appears to be a copy mistake.

Remove vm_extra_install_base() from the openstack.conf
entirely, since it does not need to be overridden.

Sponsored by:	The FreeBSD Foundation
2015-01-14 14:49:05 +00:00
gjb
4bf303e5af Reintegrate head revisions r273096-r277147
Sponsored by:	The FreeBSD Foundation
2015-01-13 21:29:24 +00:00
emaste
17bc7b8765 Add ELF Tool Chain release notes
Most recent import in r276398 and switch to ELF Tool Chain tools by
default in r276796.

Reviewed by:	gjb
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1501
2015-01-12 03:06:29 +00:00
gjb
2eeb1230c4 Split the <orgname> tag out of being a single-line.
Sponsored by:	The FreeBSD Foundation
2015-01-12 02:10:45 +00:00
gjb
a6f2877d5a Document r276881, libedit UTF-8 support and sh(1) unicode
support.

Sponsored by:	The FreeBSD Foundation
2015-01-12 02:08:13 +00:00
gjb
bbb557713e Fix ordering by SVN revision.
Sponsored by:	The FreeBSD Foundation
2015-01-11 20:07:07 +00:00
gjb
c6309d1014 Document r271539, bsdinstall(8) parition editor and sade(8)
now support ZFS natively.

Sponsored by:	The FreeBSD Foundation
2015-01-11 20:04:35 +00:00
gjb
81de0526e8 Fix the release notes article.xml file to confirm with
FDP style, specifically reindenting the entire file for
tag alignment, rewrapping lines where necessary.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:28 +00:00
gjb
2aed6b9b42 Add a comment in the release notes XML file to note the
last revision, to make it easier to keep track of where
the last update(s) left off.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:25 +00:00
gjb
26d9069534 Document r276551, texinfo and info page removal.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:23 +00:00
gjb
41a05c3836 Document r275963, CPU frequency/voltage control driver for
RPI.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:20 +00:00
gjb
cae81f64c0 Document r275874, bsdinstall(8) now uses dpv(3) when extracting
the distribution packages.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:17 +00:00
gjb
9cacff6267 Document r275748, arc_meta_limit now exposed through kernel
statistics.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:15 +00:00
gjb
e05dcfab5a Document r275732, OpenCrypto support for AES-ICM and AES-GCM.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:12 +00:00
gjb
59403fb87a Document r275718, binutils PowerPC relocations update.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:09 +00:00
gjb
6c4f609533 Fix indentation for r270096 entry.
While here, remove the leading 'r' from the revision tag.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:07 +00:00
gjb
cd09caf486 Document r275680, fstyp(8) addition.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:04 +00:00
gjb
711044a22d Document r275461, CTL port/LUN limits increased.
Add iXsystems to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:01:01 +00:00
gjb
e19b1097f8 Document r275299, mrouted rc(8) script removal from base.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:58 +00:00
gjb
786f3de4fa Document r275171, r275190: hpwmc(4) performance counter
sampling fixes for G4 and G5 class processors.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:55 +00:00
gjb
e063790da9 Document r274987, gpio(3) addition.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:52 +00:00
gjb
00665116cc Document r274960, elfdump(1) cap_limits support.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:49 +00:00
gjb
b2d4c1116e Document r274733, PMU power-button event support for certain
PowerBooks.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:47 +00:00
gjb
56043366c0 Document r274394, bsdconfig(8) skips initial tzetup(8) screen
if run within a VM.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:44 +00:00
gjb
d9ab9fc857 Document r274386, apci(4) and pci(4) fix for ACPI S3 state.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:41 +00:00
gjb
5cd085de0e Document r274246, gre(4) overhaul, me(4) addition.
Add Yandex LLC to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:38 +00:00
gjb
d95d8655c6 Document r274085, vt(4) is now default.
Sponsored by:	The FreeBSD Foundation
2015-01-11 19:00:35 +00:00
gjb
3375fb610a Fix typo in hpet(4) device name in r273598 entry.
Submitted by:	Jan Beich
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:23:41 +00:00
gjb
ca8728416a Reword entry for r270745: 'tracer' keyword displays the tracing
process, not the child<->parent mapping.

Submitted by:	mjg
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:23:38 +00:00
gjb
981d37d4da Minor fixes:
- Capitalize titles
 - Typo fix.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:46 +00:00
gjb
04c6f1ae76 Document r273806, Chelsio T5 userspace library.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:43 +00:00
gjb
f41b7f05f2 Document r273598, /dev/heptN devices for HPET access from
userland.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:41 +00:00
gjb
958c4f046f Document r273515, virtio_console(4) addition.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:38 +00:00
gjb
45ec824755 Document r273331, vxlan(4) addition.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:35 +00:00
gjb
19ac09e3b1 Document r273264, SD card detection instability fix for RPI.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:32 +00:00
gjb
d9bf01a066 Document r273178, kern.vt.spclkeys replaced with individual
kern.vt.kbd_* variants.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:30 +00:00
gjb
720c4a581f Document r273146, OpenSSL updated to 1.0.1j.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:27 +00:00
gjb
aec2f2431f Document r272842, r272848, dl_iterate_pthr(3) always
returns the path of the dlpi_name ELF object.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:24 +00:00
gjb
5e4e04807f Document r272730, support for AR816x/AR817x in alc(4).
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:21 +00:00
gjb
1a4a17e696 Document r272720, PLPMTUD blackhole detection (RFC 4821).
Add Limelight Networks to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:18 +00:00
gjb
befb17fb91 Document r272488, userland CTF support in DTrace.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:15 +00:00
gjb
95613af64b Document r272350, MK_ARM_EABI removal.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:12 +00:00
gjb
aec8461072 Document r272274, canmount=off set on /var when installing on
ZFS.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:10 +00:00
gjb
601e9a284c Document r272273, '%U' and '%W' support added to strptime(3).
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:07 +00:00
gjb
93cfe9c2d3 Document r272198, mkimg(1) longopts to obtain information about
the utility itself.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:04 +00:00
gjb
8d591b4eaf Document r272166, primes(6) fix for incorrectly-returned values.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:04:01 +00:00
gjb
e1f7b2e140 Document r272089, ipfw(4) fix when using dummynet(4) at layer 2
leading to possible kernel panic.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:58 +00:00
gjb
7f5ff4cc17 Add an 'abi-compat' subsection to the 'userland' section.
Document r271982, compat.linux.osrelease updated after
support for CentOS 6 ports has been added.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:56 +00:00
gjb
8b4892540a Bump copyright year, following past few commits.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:53 +00:00
gjb
db728858b6 Document r271705, hardware context support added to drm/i915.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:50 +00:00
gjb
abb9d932bb Document r271697, dtrace fixes for FreeBSD/powerpc.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:47 +00:00
gjb
7e61e2cd08 Document r271482, mkimg(1) support for empty partition
entries.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:44 +00:00
gjb
62d28c51f8 Add a 'periodic-scripts' subsection to the 'userland'
section.

Document r271321, don't cross mount boundaries when
cleaning tmp files.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:42 +00:00
gjb
9529f7b00e Document r270745, ps(1) 'tracer' keyword addition.
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:39 +00:00
gjb
676de1004a Document r270676, support for ${LOCALBASE}/etc/rc.conf.d in
rc(8).

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:36 +00:00
gjb
8dc6d3ed84 Document r270675, mailwrapper(8) supports mailer.conf(5) in
LOCALBASE.

Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:33 +00:00
gjb
4debbb64f5 Document r270096, autofs(5).
Sponsored by:	The FreeBSD Foundation
2015-01-10 22:03:30 +00:00
gjb
7b0cd0edc9 Switch to x11/gnome3 now that x11/gnome2 no
longer exists in the ports tree.

MFC after:	3 days
X-MFC-With:	r276820, r276822, r276827
Sponsored by:	The FreeBSD Foundation
2015-01-08 15:50:10 +00:00
gjb
8246c49040 Ensure the ports directories exist for the list of
packages intended to be included on the DVD, and
remove any nonexistent ports from the final list.

Print the list of missing paths, and ensure that
DVD_PACKAGES is non-zero length (which should never
happen).

MFC after:	3 days
X-MFC-With:	r276820, r276822
Sponsored by:	The FreeBSD Foundation
2015-01-08 15:42:10 +00:00
gjb
edd49ae363 Ensure /var/run/ld-elf.so.hints exists before building
pkg(8).

MFC after:	3 days
X-MFC-With:	r276820
Sponsored by:	The FreeBSD Foundation
2015-01-08 14:39:53 +00:00
gjb
7b6cc62211 Print informational output when NOPORTS is set,
which would otherwise cause pkg-stage.sh to
silently exit.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-01-08 14:29:03 +00:00
gjb
aba37b9da4 Properly change directories before creating the
PKG_ALTABI -> PKG_ABI symlink.

MFC after:	3 days
X-MFC-With:	r276765
Sponsored by:	The FreeBSD Foundation
2015-01-06 20:46:29 +00:00
gjb
84c387db23 Update pkg-stage.sh to be compatible with pkg-1.4.x.
In 1.3.x and earlier, ABI format is, for example,
freebsd:11:x86:64.

In 1.4.x, ABI format is FreeBSD:11:amd64, and a new
configuration entry, ALTABI, is: freebsd:11:x86:64.

Export PKG_ABI and PKG_ALTABI accordingly, and if
PKG_ALTABI is set, create a symlink within the dvd
PKG_CACHEDIR so both new and old ABI directories
exist.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-01-06 20:42:50 +00:00
delphij
6c04b8d143 Document file update. 2015-01-02 23:10:28 +00:00
gjb
c0b4cf7c23 Document asr(4) removal in r276526.
Sponsored by:	The FreeBSD Foundation
2015-01-02 21:52:01 +00:00
gjb
20d4dd3591 Bump copyright year.
Sponsored by:	The FreeBSD Foundation
2015-01-02 21:46:57 +00:00
gjb
b591aa0be2 Update the 'Submitting Problem Reports' section to reflect
send-pr(1) deprecation, taking the text from the document
in stable/10.

Sponsored by:	The FreeBSD Foundation
2015-01-02 21:46:53 +00:00
gjb
bff08e82e9 Remove hwlist.asr macro, asr(4) removed in r276526.
Sponsored by:	The FreeBSD Foundation
2015-01-02 21:09:54 +00:00
gjb
0c5826d4a3 Use the correct loader.conf(5) entry for deferring the
mountroot prompt.

Prodded by:	ian
Sponsored by:	The FreeBSD Foundation
2014-12-30 03:35:26 +00:00
gjb
e4c198cf04 Delay dropping to the mountroot prompt for 10 seconds
in case the root device is not yet ready.

Sponsored by:	The FreeBSD Foundation
2014-12-29 22:32:39 +00:00
emaste
3c6d556e12 Build gperf before gcc
The ARM image builds build the in-tree gcc in order to build u-boot
and gperf is needed to build gcc, but is no longer installed on archs
that use clang.

Invoking the make targets as separate steps is done to work around
a build failure which is not yet fully understood.

Reviewed by:	gjb, imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1317
2014-12-24 18:51:25 +00:00
gjb
447d8c15e8 Adjust the 'Relnotes:' search to look for any non-empty
string following the tag.

Sponsored by:	The FreeBSD Foundation
2014-12-08 15:45:07 +00:00
bapt
876d27ab4b Convert to LIBADD 2014-11-26 08:12:21 +00:00
gjb
7f08d7ffb1 Fix indentation nit.
Sponsored by:	The FreeBSD Foundation
2014-11-24 02:36:43 +00:00
gjb
14b8fb2398 In vm_extra_install_packages(), only bootstrap pkg(8)
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
2014-11-24 02:34:01 +00:00
gjb
5074f8a73e Revert r274773, after I *specifically* objected to this change
numerous times.

Sponsored by:	The FreeBSD Foundation
2014-11-21 02:30:37 +00:00
cperciva
8b1726e8cc Change how packages are installed into VM images: Rather than chrooting
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.
2014-11-21 02:13:12 +00:00
cperciva
cb036cbe50 Add NOSWAP option which can be set by a vmimage.conf file to specify that
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.
2014-11-21 01:53:40 +00:00
cperciva
38536134a5 Merge duplicative vm-CLOUDTYPE targets before additional duplication gets
added by the impending arrival of ec2 and gcloud.
2014-11-20 03:46:35 +00:00
cperciva
5d6c87f034 Unmount filesystem and destroy md before we read the vnode from disk and
package it into a disk image.  Otherwise we end up packaging an unclean
filesystem.
2014-11-20 00:16:55 +00:00
cperciva
9e2769f85a Silence errors when umounting the chroot's /dev, since it probably doesn't
exist when we're running this.

Unmount filesystems before attempting to destroy the md which holds them.
2014-11-19 22:17:22 +00:00
gjb
ee5ba5e498 In vm_install_base(), copy the host resolv.conf into
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
2014-11-19 20:19:53 +00:00
gjb
5b019b3604 Set the boot partition type to 'apple-boot' for powerpc.
Submitted by:	jhibbits
Sponsored by:	The FreeBSD Foundation
2014-11-14 22:29:33 +00:00
gjb
ef1cbbf54c Remove a stray directory from CLEANFILES.
Sponsored by:	The FreeBSD Foundation
2014-11-10 21:10:50 +00:00
melifaro
b5d711d3a6 Renove faith(4) and faithd(8) from base. It looks like industry
have chosen different (and more traditional) stateless/statuful
NAT64 as translation mechanism. Last non-trivial commits to both
faith(4) and faithd(8) happened more than 12 years ago, so I assume
it is time to drop RFC3142 in FreeBSD.

No objections from:	net@
2014-11-09 21:33:01 +00:00
gjb
102d6a49ca Call cleanup() after everything is done.
Sponsored by:	The FreeBSD Foundation
2014-11-08 16:52:07 +00:00
gjb
1eccb48028 Change path for mk-vmimage.sh from ${TARGET}/ to
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
2014-11-08 16:44:45 +00:00
gjb
fd404f418b mount(8) and umount(8) devfs(5) as needed.
Sponsored by:	The FreeBSD Foundation
2014-11-08 16:26:17 +00:00
gjb
4a2bc310f4 Fix scheme flag to mkimg(1).
Sponsored by:	The FreeBSD Foundation
2014-11-08 13:49:59 +00:00
gjb
9a076ad6f7 Fix line continuation in write_partition_layout().
Remove variable test that is no longer needed.

Sponsored by:	The FreeBSD Foundation
2014-11-08 13:49:18 +00:00
gjb
987e472087 Spell 'OPTARG' correctly.
Actually call vm_create_base().

Sponsored by:	The FreeBSD Foundation
2014-11-08 12:59:32 +00:00