Commit Graph

7023 Commits

Author SHA1 Message Date
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