aboutsummaryrefslogtreecommitdiff
path: root/release
Commit message (Collapse)AuthorAgeFilesLines
* release/rc.local: Replace dialog with bsddialogAlfonso S. Siciliano2022-03-291-13/+13
| | | | | | | Replace (LGPL) dialog utility with (BSD-2-Clause) bsddialog utility. Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D34678
* Remove "/dev/" from geom name in `gpart add` command.Alexander Motin2022-03-161-1/+1
| | | | | PR: 232462 MFC after: 1 week
* release: Remove references to ChallengeResponseAuthenticationMark Johnston2022-03-012-4/+3
| | | | | | | | | | | | | This sshd_config keyword was replaced by KbdInteractiveAuthentication in openssh 8.7, though ChallengeResponseAuthentication is silently accepted as an alias. However, this means that the code in ec2.conf which modifies a commented-out line no longer does anything. Apply a minimal fix. Reviewed by: cperciva, emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34400
* release: Add support for building on non-FreeBSDJessica Clarke2022-02-289-17/+25
| | | | | | | | | | | | | | | | This requires two sets of changes. Firstly, for non-FreeBSD, we do not know where tools are in PATH (and it is likely that some are not in system directories and have been built as bootstrap tools during the build), so we should leave PATH alone and trust the user. Secondly, makefs needs a master.passwd for building images from a METALOG file, so pass the directory in the image tree to makefs's -N option in order to pick up a valid FreeBSD master.passwd; this is unnecessary on FreeBSD (except in the edge case of building an image that refers to users or groups not present in the host's database, which is unlikely but technically possible) but harmless so can be done unconditionally. Reviewed by: brooks, emaste, gjb Differential Revision: https://reviews.freebsd.org/D34001
* release: Support -DNO_ROOT image buildingJessica Clarke2022-02-2810-70/+327
| | | | | | | | | | | | | | | | | | | | | | | | This requires a bunch of METALOG mangling to include the files we inject into the tree. The mkisoimages.sh and make-memstick.sh scripts are now called with the current directory inside the tree so that the relative paths in the METALOG match up with the current directory. The scripts do not require this when not using a METALOG, but for simplicity we always do so. The Makefile mangles the real METALOG created from the install, as those files are shared across all uses of the tree, but the shell scripts create a temporary copy of the METALOG that they mangle as their tree modifications are specific to that image. We also need to pass -D to makefs to turn any duplicate METALOG entry errors into warnings, as we have many (harmless) instances of those. Whilst dvd1.iso should work, the !NOPKG code will need more work to support this. All media will also lack mergemaster and etcupdate trees, since more work is needed to add -DNO_ROOT modes to them. Users of install media built this way will have to manually bootstrap them. Reviewed by: brooks, gjb Differential Revision: https://reviews.freebsd.org/D33999
* mkisoimages.sh: Avoid creating temporary files in the current directoryJessica Clarke2022-02-283-9/+12
| | | | | | | | | | | | Currently the current directory is the parent of the rootfs directory, but this will change in order to support NO_ROOT builds that use a metalog manifest, since those need to have the current directory be the rootfs itself in order for the relative paths to be correct, and we do not want the non-METALOG case (which passes the directory to makefs) to pick up leftover temporary .img files from a previous failed build. Reviewed by: brooks, emaste, gjb Differential Revision: https://reviews.freebsd.org/D33998
* release: Don't install ubldr.binWarner Losh2022-02-071-5/+0
| | | | | | | | | | | ubldr.bin was obsoleted by our uboot ports last year, so this is completely unused in the default config (some customers still use it, but that's not relevant to this script). Don't copy it at all since it won't be used for re@ produced images. Sponsored by: Netflix Reviewed by: kevans, gjb (re@) Differential Revision: https://reviews.freebsd.org/D34192
* pkgbase: Remove runtime dependency on bootloaderEmmanuel Vadot2022-01-141-0/+3
| | | | | | | | | It isn't needed and will cause problem when upgrading to a newer release. Reviewed by: emaste MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33878
* pkgbase: Create a FreeBSD-csh packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | | Now that root uses /bin/sh as the default shell no need to have csh part of runtime. Put it in its own package. MFC after: never Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33471
* pkgbase: Add a FreeBSD-pkg-bootstrap packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | | And put pkg and its keys in it. It's easier for small image to depend on this package rather than the larger utilities one. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33458
* pkgbase: Create a FreeBSD-fetch packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | It's useful for small image to fetch some data but we don't want to install utilities nor bloat runtime. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33463
* pkgbase: Put certctl in the FreeBSD-caroot packageEmmanuel Vadot2021-12-211-1/+1
| | | | | | | | | | There is no reason that this shouldn't be there. Change the dependency of caroot from utilities to openssl as it's the only command that it uses not in runtime. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33458
* pkgbase: Create a FreeBSD-newsyslog packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | This allow one to install it without having to install FreeBSD-utilities. While here put some newsyslog.d file in their own package. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33456
* pkgbase: Create a FreeBSD-syslogd packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | | This allow one to not install syslogd and use syslog-ng or any other syslog daemon. While here put some syslog.d file in their own package. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33455
* pkgbase: Create a FreeBSD-periodic packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | While here put the periodic files for some utilities in their own packages. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33454
* pkgbase: Create a FreeBSD-ftpd packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | And put ftpd into it. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33453
* pkgbase: Create a FreeBSD-mtree packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | | And put the mtree binary and files in it. Useful to create small mfsroot using /etc/rc.d/var without having to install FreeBSD-utilities. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33442
* pkgbase: Create a FreeBSD-tcpd packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | And put the tcp-wrapper utilities in it. Reviewed by: emaste MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33439
* pkgbase: Remove vital flags for FreeBSD-utilitiesEmmanuel Vadot2021-12-211-1/+0
| | | | | | | | | Per the pkg-descr: "Non-vital programs and librairies" Reviewed by: emaste MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33436
* pkgbase: Put yellow pages programs to its own packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | YP is less and less used, split them to users have the choice to not install them. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33441
* release: riscv64 - increase GENERICSD image sizeGlen Barber2021-12-151-1/+1
| | | | Sponsored by: Rubicon Communications, LLC ("Netgate")
* EC2: Turn off IPv6 DADColin Percival2021-11-261-0/+4
| | | | | | | | | | | | | Disable Duplicate Address Detection in EC2 instances. The networking configuration in EC2, with IPv6 addresses assigned by DHCPv6 and host egress filtering, makes "duplicate addresses" impossible. This speeds up the boot process in EC2 by 2 seconds. Reviewed by: kp, imp, bz MFC after: 2 weeks Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D33091
* release/packages/Makefile.package: Fix typoElyes HAOUAS2021-11-191-2/+2
| | | | | | | "librairies" --> "libraries" Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Pull Request: https://github.com/freebsd/freebsd-src/pull/553
* release: Remove unused variables in azure MakefileLi-Wen Hsu2021-11-041-2/+2
| | | | | Approved by: re (gjb) Sponsored by: The FreeBSD Foundation
* release: add _LOCATION to the list of required AZURE variablesGlen Barber2021-10-131-1/+1
| | | | Sponsored by: Rubicon Communications, LLC ("Netgate")
* release: use tab-delimited variables in AZURE_UPLOAD_CONFGlen Barber2021-10-131-1/+1
| | | | Sponsored by: Rubicon Communications, LLC ("Netgate")
* Update Azure release bitsLi-Wen Hsu2021-10-014-34/+87
| | | | | | | | | | | | | | | Imports the changes for building official images on Azure Marketplace, which fulfill the requirements of Azure and FreeBSD cloud images like disk layout and UEFI for Gen2 VM, along with some minor improvements like configurations to speed up booting. "CLOUDWARE" list will be updated after some more collaborations with re completed. Reviewed by: re (gjb) Sponsored by: The FreeBSD Foundation Technical assistance from: Microsoft Differential Revision: https://reviews.freebsd.org/D23804
* EC2: Default to UEFI bootingColin Percival2021-09-161-4/+0
| | | | | | | | | | | | | | | | | This reduces the FreeBSD boot time by approximately 5 seconds, roughly equally divided betwenn two factors: * Disk I/O is faster in the EFI loader since it can perform larger I/Os. (The BIOS loader is limited due to the use of bounce buffers in sub-1M memory.) * The EFI console is much faster than the VGA console. Note however that not all EC2 instance types support UEFI; as a general rule the newer instances (based on Amazon's "Nitro" platform) support UEFI but the older instances (based on Xen) do not. X-MFC: TBD based on tradeoff between performance and compatibility Relnotes: yes Sponsored by: https://www.patreon.com/cperciva
* EC2: Allow AMI boot mode to be specifiedColin Percival2021-09-161-2/+12
| | | | | | | | | | | | | | | The default boot method for amd64 AMIs is BIOS, but at AMI creation time a flag can be set to specify that UEFI should be used instead. This commit adds a variable AMIBOOTMETHOD which, if set to "UEFI", causes the appropriate flag to be set during AMI creation. The only boot method supported by EC2 for arm64 is UEFI. The names of AMIs are also amended to include the boot method; they now look like "FreeBSD 14.0-CURRENT-amd64-20210915 UEFI". MFC after: 1 week Sponsored by: https://www.patreon.com/cperciva
* pkgbase: Create a FreeBSD-ftp packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | | | ftp tools aren't that useful nowadays but some might want them. Create a FreeBSD-ftp package so users have a choice to have them or not. Differential Revision: https://reviews.freebsd.org/D31794
* pkgbase: Create a FreeBSD-hyperv packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | Put all hyperv utilities in it. Differential Revision: https://reviews.freebsd.org/D31805
* pkgbase: Remove libefivar package and add a efi-tools oneEmmanuel Vadot2021-09-071-0/+2
| | | | | | Put all the efi related tools into FreeBSD-efi-tools. Differential Revision: https://reviews.freebsd.org/D31803
* pkgbase: Create a FreeBSD-kerberos packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | | This allows users to install or not kerberos related utilities and libs. Differential Revision: https://reviews.freebsd.org/D31801
* pkgbase: Create a FreeBSD-rdma packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | Put all the rdma related tools into this package. Differential Revision: https://reviews.freebsd.org/D31799
* pkgbase: Create a vt-data packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | | vt files for either keyboards and fonts are totally optional so create a separate package for them. Differential Revision: https://reviews.freebsd.org/D31797
* pkgbase: Create a FreeBSD-dwatch packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | | While dwatch is useful some users might not want it by default. Create a package for it. Differential Revision: https://reviews.freebsd.org/D31796
* pkgbase: Create a mlx-tools packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | | | mlx* are only useful for users who have a Mellanox card. Create a package for it so users that don't have this card can avoid having this program. Differential Revision: https://reviews.freebsd.org/D31795
* pkgbase: Create a cxgbe-tools packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | | | cxgbetool is only useful for users who have a Chelsio card. Create a package for it so users that don't have this card can avoid having this program. Differential Revision: https://reviews.freebsd.org/D31793
* pkgbase: Create a FreeBSD-telnet packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | | | | | both telnet and telnetd aren't that useful nowadays but some might want them. Create a FreeBSD-telnet package so users have a choice to have them or not. Differential Revision: https://reviews.freebsd.org/D31791 Reviewed by: emaste
* pkgbase: Create a FreeBSD-ggate packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | Move ggate* to it. Differential Revision: https://reviews.freebsd.org/D31790
* Add support for recording EC2 AMI Ids in SSMColin Percival2021-08-271-1/+4
| | | | | | | | | | | | | | | | | | If SSMPREFIX is specified, AMI Ids will be recorded in the SSM Parameter Store under the name ${SSMPREFIX}/${ARCH}/${FLAVOUR}/${ROOTFS}/${REVISION}/${BRANCH} where ARCH is "amd64" or "arm64", FLAVOUR is "base" (but may have other options in the future), ROOTFS is "ufs" (but may have other options in the future), and REVISION and BRANCH have their normal meanings. FreeBSD will be using the public prefix "/aws/service/freebsd", resulting in SSM Parameter names which look like /aws/service/freebsd/amd64/base/ufs/14.0/CURRENT Relnotes: yes Sponsored by: https://patreon.com/cperciva MFC after: 2 weeks
* release: allow VM_EXTRA_PACKAGES to be specified in the environmentBrad Davis2021-08-094-6/+10
| | | | | | | | | | This is useful for adding extra packages to the build of an AMI. For example: env VM_EXTRA_PACKAGES="zsh" make -C release ec2ami Approved by: gjb MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate")
* release: fix copypastaBrad Davis2021-08-091-1/+1
| | | | | | | Approved by: gjb MFC after: 1 week X-MFC-With: fd17ea8c1849039c436f7192ca407db70561df03 Sponsored by: Rubicon Communications, LLC ("Netgate")
* release: make pkg installs more robustBrad Davis2021-08-091-2/+4
| | | | | | | | | | | Currently pkg(8) will fail to install any package if one is missing, so make this a loop to prevent one missing package from preventing the rest from installing. Seen building an AWS AMI for aarch64 on main and ebsnvme-id is not available in the repo at the moment. Approved by: gjb MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate")
* arm64: allwinner: Remove sun50i-a64-oppEmmanuel Vadot2021-07-243-3/+3
| | | | | | This is unneeded now that the DTS have the opp. MFC after: 1 week Sponsored by: Diablotin Systems
* release: Remove C-like string comparison operatorJose Luis Duran2021-06-301-9/+9
| | | | | | | | | | | Per [(1), i.e. test(1), the string comparison operator should be `=`, not `==` in sh(1) scripts. No functional change. FreeBSD's test accepts `==` as an alias for `=` for compatibility with gnu test's `==` extension. Reviewed by: imp@, gjb@ Pull Request: https://github.com/freebsd/freebsd-src/pull/485
* EC2: Tell gptboot to skip its 3 second waitColin Percival2021-06-211-0/+4
| | | | | Nobody is going to hit a key to tell gptboot to select another disk, so there's no point waiting.
* pkgbase: Create a FreeBSD-nfs packageEmmanuel Vadot2021-06-191-0/+2
| | | | | | | | And move all the nfs related commands there. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D30754 Sponsored by: Diablotin Systems
* pkgbase: Put dtrace in its own packageEmmanuel Vadot2021-06-191-0/+2
| | | | | | | While dtrace is usefull some people might not want it. Differential Revision: https://reviews.freebsd.org/D30752 Sponsored by: Diablotin Systems
* Add bcm2710-rpi-cm3.dtb to the list of DTBs being added.Max Stucchi2021-06-021-1/+1
| | | | | | | | | | | This allows to boot out of the box on the RPI COmpute Module 3 with 32G of eMMC. Tested by: imp confirmed .dtb is in the rpi-firmware pkg Reviewed by: gjb@, imp@ Pull Request: https://github.com/freebsd/freebsd-src/pull/452 Sponsored by: Netflix