Commit Graph

6909 Commits

Author SHA1 Message Date
gjb
cc923c43ad Update the FreeBSD versions in the stable/10 errata file.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-11-14 21:12:28 +00:00
gjb
94b1b73868 MFC r274095:
Fix VOLUME_LABEL when BRANCH contains '-' and '.'
  characters, in particular '-' and '.'.

Insta-MFC ok:	re (hrs)
Sponsored by:	The FreeBSD Foundation
2014-11-04 23:02:16 +00:00
gjb
e9593a9647 MFC r273653:
Fix a few issues with creating VOLUME_LABEL for the
  installation ISOs:

   - TYPE, BRANCH, and REVISION are only defined if
     OSRELEASE is not defined, so in situations where
     one might set OSRELEASE for an in-house ISO build,
     VOLUME_LABEL would be empty.

   - makefs(8) limits the volume label to 32 characters,
     which for the powerpc64 case, OSRELEASE expands to
     FreeBSD-11.0-CURRENT-powerpc-powerpc64.  Even with
     removing the prefixing 'FreeBSD-', the string is 30
     characters long, leaving zero room for suffixing the
     type of ISO media (BO for bootonly, CD for cdrom, and
     DVD for dvdrom).

  Resolve these by defining VOLUME_LABEL when defining
  OSRELEASE if unset.  If OSRELEASE is defined by the
  builder, use the OSRELEASE from that definition as the
  VOLUME_LABEL.

  In addition, for cases where both TARGET and TARGET_ARCH
  are used for the VOLUME_LABEL, use TARGET_ARCH if it
  differs from TARGET.

  There are probably a few sharp edges here yet, but these
  problems are going to affect the powerpc/powerpc64 builds
  for 10.1-RELEASE, so the immediate concern is fixing the
  underlying problem at hand quickly, and less so about the
  elegance of the fix.

Insta-MFC ok:	re (kib)
Sponsored by:	The FreeBSD Foundation
2014-10-26 17:14:57 +00:00
pfg
f56339f043 MFC r271787:
simple_httpd: cosmetic cleanups.

Many tab vs space cleanups.
Use setpgid() instead of setpgrp() which is more portable.
2014-10-23 02:50:18 +00:00
gjb
96f65a33d2 Fix label for the UEFI bootonly cd.
Sponsored by:	The FreeBSD Foundation
2014-10-21 00:07:37 +00:00
gjb
f36e929e1c MFC r273204:
Add more descriptive metadata to the ISO images.

Sponsored by:	The FreeBSD Foundation
2014-10-21 00:06:03 +00:00
gjb
14d211224f MFC r273093, r273096:
r273093:
  Merge the following from ^/projects/release-vmimage:
  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).

r273096:
  Merge the following from ^/projects/release-vmimage:
  r273076, r273077, r273079, r273095:

  r273076:
    Add a separate make(1) target to release/Makefile to
    build FreeBSD virtual machine disk images for use on
    the Microsoft Azure service.

    For now, this target is not directly connected to the
    build, however can be manually invoked.

    The 'vm-azure' target invokes {amd64,i386}/mk-azure.sh,
    which does the heavy lifting to produce proper VHDs.
    mk-azure.sh uses a configuration file, defaulting to
    tools/azure.conf if otherwise unset.

  r273077:
    Clear VM_RC_LIST.

  r273079:
    Fix signal list to trigger umount(8).

  r273095:
    Output an informational message when mkimg(1) runs, so it
    does not appear that the process has stopped while waiting
    for a 'y/n' response when waagent is deprovisioned.

Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2014-10-16 23:16:26 +00:00
gjb
bf64761c21 Revert r273084:
In the stable/ branches, release.prev intentionally points to the
  previous version, in addition to a number of intentional version
  mappings for the errata.html page, that this commit breaks.

Reported by:	hrs
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-10-14 16:44:15 +00:00
gjb
d8c07bdc2c Clean up the stable/10 errata document now that releng/10.1
has precedence over releng/10.0.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-10-14 13:06:13 +00:00
gjb
209cc41052 Update the FreeBSD versions in the stable/10 errata documentation
to reflect reality.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-10-14 13:03:11 +00:00
gjb
dcfed64a2e MFC r272414:
Merge the following revisions from ^/projects/release-vmimage:

  r272234, r272236, r272262, r272264, r272269, r272271, r272272,
  r272277, r272279, r272376, r272380, r272381, r272392, r272234,
  r272412:

  r272234:
    Initial commit to include virtual machine images as part
    of the FreeBSD release builds.

    This adds a make(1) environment variable requirement,
    WITH_VMIMAGES, which triggers the virtual machine image
    targets when not defined to an empty value.

    Relevant user-driven variables include:

     o VMFORMATS:	The virtual machine image formats to create.
       Valid formats are provided by running 'mkimg --formats'

     o VMSIZE:	The size of the resulting virtual machine
       image.  Typical compression is roughly 140Mb, regardless
       of the target size (10GB, 15GB, 20GB, 40GB sizes have been
       tested with the same result).

     o VMBASE:	The prefix of the virtual machine disk images.
       The VMBASE make(1) environment variable is suffixed with
       each format in VMFORMATS for each individual disk image, as
       well as '.img' for the source UFS filesystem passed to
       mkimg(1).

    This also includes a new script, mk-vmimage.sh, based on how
    the VM images for 10.0-RELEASE, 9.3-RELEASE, and 10.1-RELEASE
    were created (mk-vmimage.sh in ^/user/gjb/thermite/).

    With the order in which the stages need to occur, as well as
    sanity-checking error cases, it makes much more sense to
    execute a shell script called from make(1), using env(1) to
    set specific parameters for the target image than it does to
    do this in make(1) directly.

  r272236:
    Use VMBASE in place of a hard-coded filename in the CLEANFILES
    list.

  r272262:
    Remove a 'set -x' that snuck in during testing.

  r272264:
    release/Makefile:
      Connect the virtual machine image build to the release
      target if WITH_VMIMAGES is set to a non-empty value.

    release/release.sh:
      Add WITH_VMIMAGES to RELEASE_RMAKEFLAGS.

    release/release.conf.sample:
      Add commented entries for tuning the release build if the
      WITH_VMIMAGES make(1) environment variable is set to
      a non-empty value.

  r272269:
    release/Makefile:
      Include .OBJDIR in DESTDIR in the vm-base target.

    release/release.sh:
      Provide the full path to mddev.

  r272271:
    Fix UFS label for the root filesystem.

  r272272:
    Remove comments left in accidentally while testing, so the
    VM /etc/fstab is actually created.

  r272277:
    Remove the UFS label from the root filesystem since it is added
    by mkimg(1) as a gpt label, consistent with the fstab(5) entry.

  r272279:
    Comment cleanup in panic() message when mkimg(1) does not support
    the requested disk image format.

  r272376:
    Separate release/scripts/mk-vmimage.sh to machine-specific
    scripts, making it possible to mimic the functionality for
    non-x86 targets.

    Move echo output if MAKEFLAGS is empty outside of usage().

    Remove TARGET/TARGET_ARCH evaluation.

  r272380:
    Avoid using env(1) to set values passed to mk-vmimage.sh,
    and instead pass the values as arguments to the script,
    making it easier to run this by hand, without 'make release'.

    Add usage_vm_base() and usage_vm_image() usage helpers.

  r272381:
    After evaluating WITH_VMIMAGES is non-empty, ensure
    the mk-vmimage.sh script exists before running it.

  r272392:
    Add WITH_COMPRESSED_VMIMAGES variable, which when set enables
    xz(1) compression of the virtual machine images.

    This is intentionally separate to allow more fine-grained
    tuning over which images are compressed, especially in cases
    where compressing 20GB sparse images can take hours.

  r272412:
    Document the new 'vm-image' target, and associated release.conf
    variables.

  r272413:
    Remove two stray comments added during the initial iterations
    of testing, no longer needed.

Sponsored by:	The FreeBSD Foundation
2014-10-14 12:23:44 +00:00
gjb
524a0ad518 Revert r272724:
Features not yet available in stable/10 are needed in
  mkimg(1), and it is more dangerous to tweak these changes
  in stable/10 directly without explicitly testing certain
  failure cases.

  Re-addition of this change is imminent.

Sponsored by:	The FreeBSD Foundation
2014-10-08 04:42:56 +00:00
gjb
50b9567d08 MFC r272414:
Merge the following revisions from ^/projects/release-vmimage:

r272234, r272236, r272262, r272264, r272269, r272271, r272272,
r272277, r272279, r272376, r272380, r272381, r272392, r272234,
r272412:

r272234:
  Initial commit to include virtual machine images as part
  of the FreeBSD release builds.

  This adds a make(1) environment variable requirement,
  WITH_VMIMAGES, which triggers the virtual machine image
  targets when not defined to an empty value.

  Relevant user-driven variables include:

   o VMFORMATS:	The virtual machine image formats to create.
     Valid formats are provided by running 'mkimg --formats'

   o VMSIZE:	The size of the resulting virtual machine
     image.  Typical compression is roughly 140Mb, regardless
     of the target size (10GB, 15GB, 20GB, 40GB sizes have been
     tested with the same result).

   o VMBASE:	The prefix of the virtual machine disk images.
     The VMBASE make(1) environment variable is suffixed with
     each format in VMFORMATS for each individual disk image, as
     well as '.img' for the source UFS filesystem passed to
     mkimg(1).

  This also includes a new script, mk-vmimage.sh, based on how
  the VM images for 10.0-RELEASE, 9.3-RELEASE, and 10.1-RELEASE
  were created (mk-vmimage.sh in ^/user/gjb/thermite/).

  With the order in which the stages need to occur, as well as
  sanity-checking error cases, it makes much more sense to
  execute a shell script called from make(1), using env(1) to
  set specific parameters for the target image than it does to
  do this in make(1) directly.

r272236:
  Use VMBASE in place of a hard-coded filename in the CLEANFILES
  list.

r272262:
  Remove a 'set -x' that snuck in during testing.

r272264:
  release/Makefile:
    Connect the virtual machine image build to the release
    target if WITH_VMIMAGES is set to a non-empty value.

  release/release.sh:
    Add WITH_VMIMAGES to RELEASE_RMAKEFLAGS.

  release/release.conf.sample:
    Add commented entries for tuning the release build if the
    WITH_VMIMAGES make(1) environment variable is set to
    a non-empty value.

r272269:
  release/Makefile:
    Include .OBJDIR in DESTDIR in the vm-base target.

  release/release.sh:
    Provide the full path to mddev.

r272271:
  Fix UFS label for the root filesystem.

r272272:
  Remove comments left in accidentally while testing, so the
  VM /etc/fstab is actually created.

r272277:
  Remove the UFS label from the root filesystem since it is added
  by mkimg(1) as a gpt label, consistent with the fstab(5) entry.

r272279:
  Comment cleanup in panic() message when mkimg(1) does not support
  the requested disk image format.

r272376:
  Separate release/scripts/mk-vmimage.sh to machine-specific
  scripts, making it possible to mimic the functionality for
  non-x86 targets.

  Move echo output if MAKEFLAGS is empty outside of usage().

  Remove TARGET/TARGET_ARCH evaluation.

r272380:
  Avoid using env(1) to set values passed to mk-vmimage.sh,
  and instead pass the values as arguments to the script,
  making it easier to run this by hand, without 'make release'.

  Add usage_vm_base() and usage_vm_image() usage helpers.

r272381:
  After evaluating WITH_VMIMAGES is non-empty, ensure
  the mk-vmimage.sh script exists before running it.

r272392:
  Add WITH_COMPRESSED_VMIMAGES variable, which when set enables
  xz(1) compression of the virtual machine images.

  This is intentionally separate to allow more fine-grained
  tuning over which images are compressed, especially in cases
  where compressing 20GB sparse images can take hours.

r272412:
  Document the new 'vm-image' target, and associated release.conf
  variables.

r272413:
  Remove two stray comments added during the initial iterations
  of testing, no longer needed.

Sponsored by:	The FreeBSD Foundation
2014-10-08 04:25:17 +00:00
emaste
618d8006d2 MFC r271549 (nwhitehorn):
Create /tmp/bsdinstall_etc even if we aren't starting the installer
    so that dhclient can write resolv.conf when used from the live
    environment.

PR:		176078
Approved by:	re
2014-09-30 16:36:50 +00:00
gjb
b5e5f060ae Document r271947, OpenPAM updated to Ourouparia (20140912).
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-25 16:48:23 +00:00
gjb
d1d1b8fe18 Document r271943, Latest/pkg.txz symlink included on the DVD to
make bootstrapping pkg(8) easier.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-25 16:48:21 +00:00
gjb
74ceae8d3b Document r271880, serial and null console support added to UEFI
boot loader.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-25 16:48:19 +00:00
gjb
1dbb0a1907 Document r272006, GEOM_ELI passphrase caching on boot with multiple
providers.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-23 01:18:18 +00:00
gjb
d7e6a9f504 Document r271967, mkimg(1) empty partition support.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-23 01:18:16 +00:00
gjb
d63d137b6a Add sponsor attribution for r271470
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-23 01:18:13 +00:00
gjb
d36a045e13 Document r271816, drm/i915 HW context support.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-23 01:18:11 +00:00
gjb
66a7fec3b0 Document r271470, addition of BIOS- and UEFI-capable CDROM images.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-23 01:18:09 +00:00
brueffer
c546415691 Spelling, grammar and punctuation fixes.
Approved by:	re (gjb)
2014-09-22 20:04:59 +00:00
gjb
e34350f59e MFC r271876:
When populating the dvd/packages/ directory, create
  a symlink to All/pkg-*.txz in the Latest/ directory.

  This allows 'pkg bootstrap' to work out-of-box if
  the REPOS_DIR environment is properly set.

Approved by:	re (delphij)
Sponsored by:	The FreeBSD Foundation
2014-09-22 05:00:55 +00:00
gjb
af46b1fe8b MFC r271676, r271677, r271678:
r271676:
  Catch up with Crochet changes to fix the BEAGLEBONE
  build.

r271677:
  Catch up with Crochet changes to fix the WANDBOARD-QUAD
  build.

r271678:
  Set a static revision of the Crochet checkout to avoid
  surprise build failures.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-18 17:15:38 +00:00
gjb
ed5abc5007 Document SA-14:19
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-16 19:25:27 +00:00
emaste
11d930cebb MFC r265171 by nwhitehorn: Use mkimg instead of md(4) and gpart [for powerpc].
Approved by:	re
2014-09-15 16:47:04 +00:00
gjb
4f7be401fc MFC r271480, r271483, r271491:
r271480:
  Set PKG_CACHEDIR to an 'All/' directory one level lower
  to fix 'pkg repo' generating repository metadata for the
  on-disc packages.

r271483:
  Fix duplicate PKG_ABI in the PKG_CACHEDIR path.

r271491:
  Simplify dvd package population with pkg-1.3.

Approved by:	re (rodrigc)
Sponsored by:	The FreeBSD Foundation
2014-09-15 02:21:34 +00:00
gjb
dd436f76ca Include the 'mini' (bootonly) UEFI memstick image
in the list of IMAGES.

This is a direct commit to stable/10.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-12 19:32:18 +00:00
gjb
ebd65b549a Connect the UEFI-capable disc1.iso and dvd1.iso variants
to the build.

This is a direct commit to stable/10.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-12 18:23:22 +00:00
gjb
9d621a762d MFC r271331:
Change how the recommended mailing list to track is
  added to the footer of the release/doc/ pages by
  moving a hard-coded value (that is subject to human
  error to change) to release.ent where other values
  are regularly changed, and adding parsing logic to
  release.xsl.

Approved by:	re (implicit, relnotes)
Sponsored by:	The FreeBSD Foundation
2014-09-12 17:01:14 +00:00
emaste
52dc56108e MFC r264995 (nwhitehorn):
Add script to setup bootable CD ISOs for both BIOS and EFI systems.
    Tested and working on QEMU. Actually using this script as the regular
    image generator, like with the memstick one, will require that the
    kernel support EFI too. In particular, the following two things are
    required:
    1. vt(9) be the default console driver
    2. vt_efifb and vt_vga be able to coexist usefully in the same kernel

    One other note here is that this requires newfs_msdos and mdconfig,
    which is really ugly. NetBSD's makefs at least seems to support FAT
    now. If that actually works, it should be imported and we can get rid
    of the mdconfig mess.

Approved by:	re
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
2014-09-12 16:37:56 +00:00
gjb
30e366f556 Connect the UEFI-capable memstick.img to the build.
This is a direct commit to stable/10, as the script
in head/ does UEFI by default.

Approved by:	re (rodrigc)
Sponsored by:	The FreeBSD Foundation
2014-09-09 21:07:21 +00:00
gjb
c32d713587 Document SA-14:18.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-09 17:38:55 +00:00
emaste
63b0cc75c9 MFC UEFI memstick build script
r264935 (gjb):

    Add a separate script to build the memstick.img and the
    mini-memstick.img with UEFI support.

    As the comments in the file suggest, 1) there must
    be existing ${.OBJDIR}/usr/src/release/{release,bootonly};
    2) TARGET/TARGET_ARCH must be amd64; and 3) it must be
    a vt(4)-enabled kernel with vt_efifb (*not* vt_vga).

    This script is not hooked into release/Makefile in any way
    until further testing is complete.

r264992 (nwhitehorn):

    Make a dual-boot BIOS/UEFI memstick image. Testing required before
    this gets renamed make-memstick.sh.

r265017 (nwhitehorn):

    loader's GPT support on BIOS does not seem to like the root
    filesystem being the last filesystem on the disk for some reason
    when made by this script. Add a vestigial swap partition to allow
    this to boot with QEMU BIOS.

Approved by:	re
Sponsored by:	The FreeBSD Foundation
2014-09-09 16:11:04 +00:00
gjb
259a8f66d5 - Document 263725, ctld(8) 'portal-group' is overrideable.
- Document 263726, ctld(8) 'auth-group' default entry.

Submitted by:	trasz
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 15:42:47 +00:00
gjb
8894289180 Document r263720, hostname- and IP-based restrictions added
to ctld(8).

Submitted by:	trasz
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 15:42:45 +00:00
gjb
f9220a91f7 Document r271260, support for /etc/rc.d/<service>/
subdirectories.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 15:00:01 +00:00
gjb
8df04a2533 Document r271234, mrsas(4) enabled in GENERIC for amd64
and i386.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:59 +00:00
gjb
41da06704c Document r271205, powerpc ATI Radeon 9700 backlight fix.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:57 +00:00
gjb
2139254e4b Document r271153, KSTACK_PAGES increased 4 -> 8 on powerpc64.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:55 +00:00
gjb
48180318a3 - Refine entry for r271130 since a follow-up commit
adds 64-bit libstand.

- Document r271135, initial UEFI boot support.

- Document r271136, boot1.efi, boot1.efifat, loader.efi
  installed to /boot.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:53 +00:00
gjb
471b8a73bc Document r271130, sys/boot/libstand moved to 32-bit specific
directory naming convention.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:51 +00:00
gjb
d2a36566dd Document r271128, several performance enhancements to vt(4).
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:49 +00:00
gjb
778da94be7 Document r271116, ofwfb updated to work with
x11-servers/xorg-server.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:47 +00:00
gjb
a434c5e9c4 Document r271111, vt(4) enabled for PS3.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:45 +00:00
gjb
be0094980b Document r271095, vt(4) keymap support added to the syscons
rc(8) startup script.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:43 +00:00
gjb
b97bfa455f Document r271069, Mac Mini 3,1 support added to asmc(4).
Sponsored by:	The FreeBSD Foundation
2014-09-04 11:15:38 +00:00
gjb
68b3b15c73 Document r262566, sshd(8) startup script creates ed25519 keys
if ENOENT on startup.

Sponsored by:	The FreeBSD Foundation
2014-09-04 02:14:57 +00:00
gjb
f9b0b57357 Document r264438, mdconfig(8) rc.conf(5) listing is no longer
required to be sequential.

Sponsored by:	The FreeBSD Foundation
2014-09-04 02:14:55 +00:00