aboutsummaryrefslogtreecommitdiff
path: root/release
Commit message (Collapse)AuthorAgeFilesLines
* - Once we have shifted arguments up to thrice, base-bits-dir is $1 ratherMarius Strobl2018-06-071-8/+10
| | | | | | | | | | | than $4. Introduce $BASEBITSDIR for clarity and to avoid repeating this mistake in the future. Fixing this ensures that we pick up newly built boot bits native to the target rather for/from the host. - Apply some of the argument quoting fixes done in r287635 but missing in later revisions. Notes: svn path=/head/; revision=334805
* switch amd64 memstick installer images to MBREd Maste2018-05-291-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A good number of BIOSes have trouble booting from GPT in non-UEFI mode. This is commonly reported with Lenovo desktops and laptops (including X220, X230, T430, and E31) and Dell systems. Although UEFI is the preferred amd64 boot method on recent hardware, older hardware does not support UEFI, a user may wish to boot via BIOS/CSM, and some systems that support UEFI fail to boot FreeBSD via UEFI (such as an old AMD FX-6100 that I have). With this change amd64 memsticks remain dual-mode (booting from either UEFI or CSM); the partitioning type is just switched from GPT to MBR. The "vestigial swap partition" in the GPT scheme was added in r265017 to work around some issue with loader's GPT support, so we should not need it when using MBR. There is some concern that future UEFI systems may not boot from MBR, but I am not aware of any today. In any case the likely path forward for our installers is to migrate to CD/USB combo images, and if it becomes necessary introduce a separate memstick specifically for the MBR BIOS/CSM case. PR: 227954 Reviewed by: gjb, imp, tsoome MFC after: 3 days Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15599 Notes: svn path=/head/; revision=334337
* Revert r333493, which was a temporary fix for 11.2-RELEASE, and insteadEdward Tomasz Napierala2018-05-261-1/+0
| | | | | | | | | | | | | | | switch the default kldxref_enable to YES. The reason is that it's required for every image that's being cross-built, as kldxref(8) cannot handle files for non-native architectures. For the one that is not - amd64 - having it on by default doesn't change anything; the script is noop if the linker.hints already exists. MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=334237
* release: arm64: Use loader.efi as bootaa64.efi for RPI3 and PINE64Emmanuel Vadot2018-05-212-2/+2
| | | | | | | | | | | | | | boot1.efi have some trouble to read MBR partitions, it needs them to be aligned a certain way while loader.efi can cope with them either way. We want to switch to loader.efi as the main efi loader everywhere, it seems that arm64 using MBR partition will be the guinea pig. Tested On: RPI3, Pine64 Reviewed by: imp Approved by: gjb Notes: svn path=/head/; revision=333976
* release: rpi3: Copy the special rpi3 config.txtEmmanuel Vadot2018-05-171-2/+4
| | | | | | | | | | | RPI* 32bits and RPI* 64bits have a different config.txt Copy to correct config.txt to the fat partition of the release image. Also copy pwm.dtbo as some people want to use it. Reviewed by: gjb Notes: svn path=/head/; revision=333756
* release: arm: Format FAT partition as FAT16Emmanuel Vadot2018-05-173-3/+3
| | | | | | | | | | | | | r332674 raised the size of the FAT partition from 2MB to 41MB for some boards. But we format them in FAT12 and this size appears to be to big for FAT12 and some SoC bootrom cannot cope with that. Format the msdosfs partition as FAT16, PR: 228285 MFC after: soon Notes: svn path=/head/; revision=333737
* Set kldxref_enable="YES" for ARM images. Without it, the images are missingEdward Tomasz Napierala2018-05-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | the /boot/kernel/linker.hints file, which breaks loading some of the modules with dependencies, eg cfiscsi.ko. This is a minimal fix for ARM images, in order to safely MFC it before 11.2-RELEASE. Afterwards, however, I believe we should actually just change the default (as in, etc/defaults/rc.conf). The reason is that it's required for every image that's being cross-built, as kldxref(1) cannot handle files for non-native architectures. For the one that is not - amd64 - having it on by default doesn't change anything - the script is noop if the linker.hints already exists. The long-term solution would be to rewrite kldxref(1) to handle other architectures, and generate linker.hints at build time. Reviewed by: gjb@ MFC after: 3 days Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14534 Notes: svn path=/head/; revision=333493
* Add a special GCE_LICENSE variable to Makefile.gce, which when set,Glen Barber2018-05-101-1/+2
| | | | | | | | | | | | | | | | | | | | will include license metadata in the resultant GCE image. GCE_LICENSE is unset by default, as it primarily pertains to images produced by the FreeBSD Project, but for downstream FreeBSD consumers, it can be set in the make(1) environment in the format of: --licenses="projects/PROJECT_ID/global/licenses/LICENSE_NAME" The "license" is not a license, per se, but required metadata that is required by the GCE marketplace. For the FreeBSD Project, the license name is simply 'freebsd', with the description of 'FreeBSD'. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=333473
* Use vYYYYMMDD in the timestamp suffix for Google Compute EngineGlen Barber2018-05-081-1/+2
| | | | | | | | | | snapshot images for consistency with other OSes. MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=333374
* Fix a typo.Glen Barber2018-05-041-1/+1
| | | | | | | | | | Submitted by: lidl MFC after: 3 days MFC with: r333262 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=333264
* Ensure the ports and src trees are available on GCE images,Glen Barber2018-05-041-0/+23
| | | | | | | | | | | satisfying a requirement to allow FreeBSD to be considered a top-tier supported OS in Google Compute Engine. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=333262
* Allow etdump, makefs and mkimg to be overridden.Benno Rice2018-04-251-3/+15
| | | | | | | | | | | | | | | | | | Recent changes to makefs and mkimg have led to situations where the disconnect between this script and the versions installed on the host cause failures. Provide a way to work around this that doesn't require the installation of new versions to the host system if that's not desired. With this change mkisoimages.sh will honour the $ETDUMP, $MAKEFS and $MKIMG environment variables but fall back to the previous behaviour of finding them within $PATH. Reviewed by: gjb Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D15181 Notes: svn path=/head/; revision=333005
* Increase the msdosfs partition size on arm SoC images where theGlen Barber2018-04-184-4/+4
| | | | | | | | | | | | | current size may not be sufficiently large for development and/or testing. PR: 227548 Submitted by: trasz MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=332674
* Move debug.{trace,debugger}_on_panic and kern.panic_reboot_wait_time inColin Percival2018-04-181-3/+3
| | | | | | | | | | | | EC2 instances from sysctl.conf to loader.conf; these can all be set as loader tunables, and setting them in loader.conf gives us the right behaviour in the event of a kernel panic taking place prior to when sysctl.conf is processed. MFC after: 1 week Notes: svn path=/head/; revision=332663
* Generate hybrid ISO images for amd64.Benno Rice2018-04-171-1/+27
| | | | | | | | | | | | | | | This keeps the existing El Torito entries for BIOS and UEFI boot code and adds a GPT in the ISO image's System Area containing boot code for BIOS that will load /boot/loader from the ISO filesystem and execute it. We then use etdump to find the EFI System Partition image in the El Torito catalog and add an entry to the GPT that allows EFI to find it. Reviewed by: gjb, imp Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D15051 Notes: svn path=/head/; revision=332661
* switch i386 memstick installer images to MBREd Maste2018-04-121-5/+3
| | | | | | | | | | | | | | | | | | | | | | | Some BIOSes have trouble booting from GPT in non-UEFI mode. This is commonly reported with Lenovo laptops, including my x220. As we do not currently support booting FreeBSD/i386 via UEFI there's no reason to prefer GPT. The "vestigial swap partition" was added in r265017 to work around an issue with loader's GPT support, so we should not need it when using MBR. We may want to make the same change to amd64, although the issue there is mitigated by such systems booting via UEFI in the common case. PR: 227422 Reviewed by: gjb MFC after: 3 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=332446
* make-memstick.sh: put partition args on separate linesEd Maste2018-04-104-4/+21
| | | | | | | | | | | | This makes it easier to identify the individual partition types and facilitates comparisons across architectures. Reviewed by: gjb MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=332390
* Following r331292, many of the files (such as the LICENSE file)Glen Barber2018-04-101-4/+8
| | | | | | | | | | | | have moved from the u-boot-rpi3 share directory to the default rpi-firmware share directory. Remove the files from UBOOT_FILES and append the DTB file to a DTB_FILES list so the correct path is used, fixing a build failure. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=332384
* Fix the position of $bootable so that -o platformid=efi applies correctly.Benno Rice2018-04-101-1/+1
| | | | | | | | Sponsored by: iXsystems, Inc. Pointy hat to: benno (again) Notes: svn path=/head/; revision=332346
* Fix makefs invocation after r331843.Benno Rice2018-04-101-1/+1
| | | | | | | | | | Reported by: gjb Reviewed by: gjb Sponsored by: iXsystems, Inc. Pointy hat to: benno Notes: svn path=/head/; revision=332345
* Add logic for "families" for GCE images.Glen Barber2018-03-301-0/+6
| | | | | | | | | | | | | | | This allows for GCE consumers to easily detect the latest major version of FreeBSD when using the gcloud command line utility. To ensure snapshot builds do not conflict with release-style builds (ALPHA, BETA, RC, RELEASE), the '-snap' suffix is appended to the GCE image family name. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=331806
* release: arm: Copy boot.scr from portsEmmanuel Vadot2018-03-2610-0/+10
| | | | | | | | | | | Latest u-boot update need u-boot script to load and start ubldr. (See D14230 for more details) Copy this file for our arm release on the fat partition. Approved by: gjb Notes: svn path=/head/; revision=331562
* Escape trailing newlines in a long variable list for consistency.Glen Barber2018-03-261-2/+2
| | | | | | | | | Submitted by: garga MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=331559
* Allow makefs to properly tag UEFI El Torito boot images. Use them in amd64 ISOs.Benno Rice2018-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | UEFI booting requires an EFI System Partition (ESP). On most storage devices this will be in a specific partition type. To allow booting from CD/ISO filesystems, UEFI will look for an ESP in the form of a FAT filesystem image embedded in the image. Historically FreeBSD has added one of these to its amd64 ISO images but marked it as simply another i386 boot image. Luckily for us most UEFI implementations are rather forgiving and work this out for us. This change adds the ability to mark a boot image as being a UEFI image. It also modifies our ISO generation to use this marking for the UEFI image we embed. Reported by: Thomas Schmitt <scdbackup@gmx.net> Reviewed by: emaste, imp MFC after: 1 week Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D14809 Notes: svn path=/head/; revision=331463
* Remove google_accounts_manager from VM_RC_LIST in the GCE configurationGlen Barber2018-03-221-1/+1
| | | | | | | | | | | file, no longer needed. PR: 221714 MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=331364
* Following ports commit r465175, avoid fetch(1) to obtainGlen Barber2018-03-211-5/+6
| | | | | | | | | | overlays and DTB files for the RPI3. Submitted by: manu Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=331292
* pkgbase: Fix post-install script for kernel packagesKyle Evans2018-03-141-1/+1
| | | | | | | | | | | | | | | | | | kernel.ucl uses a hardcoded boot/kernel for kldxref, which is the incorrect directory when we're installing extra kernels that aren't the "default" kernel (placed at boot/kernel). Fix this by instead using a new %KERNELDIR% that we now replace in Makefile.inc1 with "kernel" for the default kernel and "kernel.${_kernel}" for these extra kernels so that, e.g. /boot/kernel.SHIVA, will get properly kldxref'd upon update and avoid outdated linker.hints. Reviewed by: gjb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14689 Notes: svn path=/head/; revision=330929
* Bump the size of virtual machine disk images from 20G to 30G,Glen Barber2018-02-261-1/+1
| | | | | | | | | | | | | providing more space for a local buildworld to succeed without attaching separate disks for /usr/src and /usr/obj. Reported by: mckusick MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=330033
* Put the pine64 root filesystem on teh correct partition.Andrew Turner2018-02-161-2/+2
| | | | | | | | | | | | | | | | | | | The Pine64 root filesystem was incorrectly created directly on the MBR partition. This can cause the loader to get confused when loading the kernel from this filesystem. The loader will see this as a small partition meaning later checks to ensure it doesn't read past the end of the disk incorrectly report a failure. This seems to work mostly by accident with the released images as they are smaller than the reported size, however after growfs has run the image may no longer boot. Reviewed by: gjb, emaste, imp Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14343 Notes: svn path=/head/; revision=329382
* Change installer default to not install ports treeSteve Wills2018-01-301-0/+1
| | | | | | | | | Reviewed by: gjb, dteske, allanjude, bdrewery, mat Approved by: gjb Differential Revision: https://reviews.freebsd.org/D14064 Notes: svn path=/head/; revision=328593
* Bump Copyright year following r328283.Glen Barber2018-01-231-1/+1
| | | | | | | | | MFC after: 3 days MFC with: r328283 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=328284
* When CHROOTBUILD_SKIP is set, evaluate the existence of /bin/shGlen Barber2018-01-231-0/+5
| | | | | | | | | | | | within the CHROOTDIR. If it does not exist, unset CHROOTBUILD_SKIP to prevent build failures. Requested by: swills MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=328283
* After removal of loader.ps3, change petitboot configuration in release mediaNathan Whitehorn2018-01-011-18/+24
| | | | | | | | | | to directly kexec the kernel. Unlike the old loader.ps3 code, this also works on PowerNV systems, which also use petitboot. MFC after: 1 month Notes: svn path=/head/; revision=327456
* Fix the reldoc target in release/Makefile following doc commit r51264.Glen Barber2017-12-071-8/+10
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326667
* Make EC2 instances use Amazon's NTP service for time synchronization.Colin Percival2017-12-051-1/+6
| | | | | | | | | | | | | | | | Since Amazon provides NTP servers within their network, this should be far superior to using the default NTP pools; and since the service is provided by Amazon there's very little risk in enabling it by default. (If someone is able to compromise Amazon's NTP servers and exploit them to attack EC2 instances, they would almost certainly be able to compromise EC2 instances even without ntpd running...) MFC after: 1 week Relnotes: EC2 instances now keep their clocks synchronized using the Amazon Time Sync Service (aka. NTP). Notes: svn path=/head/; revision=326565
* Resurrect r321659: Turn off ChallengeResponseAuthentication for EC2 AMIs.Colin Percival2017-12-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | EC2 instances are normally launched with an SSH public key specified, which is then used for logging in (by default, as 'ec2-user'). Having ChallengeResponseAuthentication enabled (as FreeBSD's default sshd_config does) has no functional effect in a new EC2 instance, since you can't log in using a password until a password has been set -- but having this enabled results in alerts from automated scanning tools which can detect that sshd advertises support for keyboard-interactive logins (since they can't detect that accounts have no password set). EC2 users who want to use passwords to log in to their instances will need to set 'ChallengeResponseAuthentication yes' in FreeBSD 12.0 and later. Discussed with: gjb, gtetlow, emaste, des Requested by: Amazon X-MFC: No Relnotes: ChallengeResponseAuthentication is turned off by default in Amazon EC2 AMIs. Notes: svn path=/head/; revision=326564
* Fix port build flags passed to make(1) after r326315, whereGlen Barber2017-11-301-4/+8
| | | | | | | | | | | it was missed for embedded image builds. MFC after: 3 days MFC with: r326315 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326412
* Fix an indentation nit.Glen Barber2017-11-301-2/+2
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326411
* Correct a comment after r326330.Glen Barber2017-11-281-3/+3
| | | | | | | | | MFC after: 3 days MFC with: r326330 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326331
* Add a comment to release/release.conf.sample documentingGlen Barber2017-11-281-0/+14
| | | | | | | | | | | | | EMBEDDEDPORTS. [1] Remove and update stale documentation from release(7) while here. PR: 206344 [1] MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326330
* Set DISTDIR and WRKDIRPREFIX when building ports within theGlen Barber2017-11-281-0/+2
| | | | | | | | | | | chroot(8) to avoid mtime changes within the ports checkout, which can cause checksum differences. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326315
* Remove /etc/resolv.conf from virtual machine images, which isGlen Barber2017-11-214-0/+6
| | | | | | | | | | | | copied from the build host. It is renamed to /etc/resolv.conf.bak on boot, so never used anyway. Noticed by: peter MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326068
* Use chroot(8) when invoking realpath(1) when setting BOOTFILES,Glen Barber2017-11-202-2/+2
| | | | | | | | | otherwise realpath(1) exits due to a nonexistent directory. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326013
* Add missing call to services_mkdb to build the services.dbBrad Davis2017-11-191-0/+1
| | | | | | | Approved by: gjb Notes: svn path=/head/; revision=325990
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-188-2/+18
| | | | | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* Add general configuration files used by release/release.sh forGlen Barber2017-11-177-0/+73
| | | | | | | | | | | big-iron installation images. MFC after: 3 days MFC with: r325948, r325949, r325950, r325951 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325953
* Fix indentation.Glen Barber2017-11-171-3/+3
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325951
* Sort variables for consistency.Glen Barber2017-11-1710-50/+50
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325950
* Sort variables in arm64 SoC configurations.Glen Barber2017-11-172-13/+12
| | | | | | | | | Remove an unneeded UBLDR_LOADADDR from RPI3.conf. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325949
* Remove stray SRCBRANCH included by mistake.Glen Barber2017-11-172-2/+0
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325948