Commit graph

7998 commits

Author SHA1 Message Date
Glen Barber
fab1a7b9b6 release: fix on-disc pkg binary symbolic links
Approved by:	re (kib)
PR:		263574
Reported by:	loader
MFC after:	immediately
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 68b0a79b7c)
2022-04-26 16:00:25 -04:00
Alexander Motin
09d62b4382 Remove "/dev/" from geom name in gpart add command.
PR:		232462
MFC after:	1 week

(cherry picked from commit ed5d608911)
2022-03-22 21:28:52 -04:00
Mark Johnston
fd7db6dedd release: Remove references to ChallengeResponseAuthentication
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
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit c1b656ac55)
2022-03-07 19:25:58 -05:00
Emmanuel Vadot
7694791655 pkgbase: Remove runtime dependency on bootloader
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

(cherry picked from commit 5efa7281a7)
2022-01-28 08:10:12 +01:00
Emmanuel Vadot
2c7441c86e pkgbase: Add a FreeBSD-pkg-bootstrap package
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

(cherry picked from commit ec0ea6efa1)
2022-01-05 18:23:53 +01:00
Emmanuel Vadot
ac36d4f03a pkgbase: Create a FreeBSD-fetch package
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

(cherry picked from commit 13ef8134ef)
2022-01-05 18:23:53 +01:00
Emmanuel Vadot
967a990f76 pkgbase: Put certctl in the FreeBSD-caroot package
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

(cherry picked from commit 380073af3a)
2022-01-05 18:23:53 +01:00
Emmanuel Vadot
629c89d951 pkgbase: Create a FreeBSD-newsyslog package
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

(cherry picked from commit 26ea904caa)
2022-01-05 18:23:52 +01:00
Emmanuel Vadot
e7a69f5613 pkgbase: Create a FreeBSD-syslogd package
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

(cherry picked from commit 25367c806b)
2022-01-05 18:23:52 +01:00
Emmanuel Vadot
d11dfcf2b0 pkgbase: Create a FreeBSD-periodic package
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

(cherry picked from commit b3d14eaccc)
2022-01-05 18:23:52 +01:00
Emmanuel Vadot
12f4976f48 pkgbase: Create a FreeBSD-ftpd package
And put ftpd into it.

MFC after:	2 weeks
Sponsored by:	Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D33453

(cherry picked from commit 20cd6e315e)
2022-01-05 18:23:52 +01:00
Emmanuel Vadot
317c92dd63 pkgbase: Create a FreeBSD-mtree package
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

(cherry picked from commit dcf9d46a3f)
2022-01-05 18:23:52 +01:00
Emmanuel Vadot
d9a4b7b7bd pkgbase: Create a FreeBSD-tcpd package
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

(cherry picked from commit 078b764da3)
2022-01-05 18:23:52 +01:00
Emmanuel Vadot
75ec3034ad pkgbase: Remove vital flags for FreeBSD-utilities
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

(cherry picked from commit 3ea43eff05)
2022-01-05 18:23:52 +01:00
Emmanuel Vadot
26c7445164 pkgbase: Put yellow pages programs to its own package
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

(cherry picked from commit 5abb10faa1)
2022-01-05 18:23:51 +01:00
Emmanuel Vadot
880b9a8af6 pkgbase: Create a FreeBSD-ftp package
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

(cherry picked from commit b5be5c35db)
2022-01-05 18:23:51 +01:00
Emmanuel Vadot
d71c2dfc78 pkgbase: Create a FreeBSD-hyperv package
Put all hyperv utilities in it.

Differential Revision:	 https://reviews.freebsd.org/D31805

(cherry picked from commit db953e8b97)
2022-01-05 18:23:50 +01:00
Emmanuel Vadot
e6e5d8e7aa pkgbase: Remove libefivar package and add a efi-tools one
Put all the efi related tools into FreeBSD-efi-tools.

Differential Revision:	https://reviews.freebsd.org/D31803

(cherry picked from commit d8d41d3b84)
2022-01-05 18:23:50 +01:00
Emmanuel Vadot
f5ab36c2e1 pkgbase: Create a FreeBSD-kerberos package
This allows users to install or not kerberos related utilities
and libs.

Differential Revision:	https://reviews.freebsd.org/D31801

(cherry picked from commit a30235a4c3)
2022-01-05 18:23:50 +01:00
Emmanuel Vadot
8d7e0c5a45 pkgbase: Create a FreeBSD-rdma package
Put all the rdma related tools into this package.

Differential Revision:	 https://reviews.freebsd.org/D31799

(cherry picked from commit cab6a39d7b)
2022-01-05 18:23:50 +01:00
Emmanuel Vadot
0785c9451a pkgbase: Create a vt-data package
vt files for either keyboards and fonts are totally optional
so create a separate package for them.

Differential Revision:	     https://reviews.freebsd.org/D31797

(cherry picked from commit 88ba5e8955)
2022-01-05 18:23:49 +01:00
Emmanuel Vadot
7706352226 pkgbase: Create a FreeBSD-dwatch package
While dwatch is useful some users might not want it by default.
Create a package for it.

Differential Revision:	https://reviews.freebsd.org/D31796

(cherry picked from commit a3266ba269)
2022-01-05 18:23:49 +01:00
Emmanuel Vadot
a4e8cac918 pkgbase: Create a mlx-tools package
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

(cherry picked from commit 80645e1ce5)
2022-01-05 18:23:49 +01:00
Emmanuel Vadot
8fe89b718a pkgbase: Create a cxgbe-tools package
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

(cherry picked from commit b8876cac2d)
2022-01-05 18:23:49 +01:00
Emmanuel Vadot
872aa9c8a6 pkgbase: Create a FreeBSD-telnet package
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

(cherry picked from commit c7fd29f0f2)
2022-01-05 18:23:49 +01:00
Emmanuel Vadot
d5b2a32628 pkgbase: Create a FreeBSD-ggate package
Move ggate* to it.

Differential Revision:	https://reviews.freebsd.org/D31790

(cherry picked from commit d22072a7d5)
2022-01-05 18:23:48 +01:00
Mark Johnston
3b09235bea pkgbase: Remove package name mangling in generate-ucl.sh
The mangling was present in the initial revision of the script, but its
purpose is not clear.  It may have been to avoid defining make(1)
variables with a dash in the name, but this is permitted.  Furthermore,
it results in invalid dependency information if a dependency's name
contains an underscore, causing e.g., libcompiler_rt-dev to depend on
libcompiler-rt, and resulting in warnings when installing base system
packages.  Remove the mangling.

Reviewed by:	manu
MFC after:	2 months
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D29883

(cherry picked from commit 09d83a060f)
2022-01-05 18:23:48 +01:00
Glen Barber
c61fb699f6 release: riscv64 - increase GENERICSD image size
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 66df505066)
2021-12-21 11:30:16 -05:00
Colin Percival
efb381caf1 EC2: Turn off IPv6 DAD
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.

Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D33091

(cherry picked from commit 81075203a0)
2021-12-10 17:34:23 -08:00
Elyes HAOUAS
dd0f829b5c release/packages/Makefile.package: Fix typo
"librairies" --> "libraries"

Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Pull Request: https://github.com/freebsd/freebsd-src/pull/553
(cherry picked from commit 04912a8d1c)
2021-12-06 08:55:55 -07:00
Ed Maste
0c7a209f5d release: move installworld before installkernel
To support -DNO_ROOT work.  The top-level installworld target creates a
new METALOG starting with `#mtree 2.0` so it needs to be first, to avoid
overwriting installkernel METALOG entries.

Reviewed by:	gjb
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D29582

(cherry picked from commit 4bbfa3d3ba)
2021-12-03 10:17:42 -05:00
Colin Percival
65f22ccf82 EC2: Default to UEFI booting
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.

Discussed with:	re@, freebsd-cloud@, Amazon
Relnotes:	yes
Sponsored by:	https://www.patreon.com/cperciva

(cherry picked from commit b43d7aa09b)
2021-09-25 09:20:58 -07:00
Colin Percival
c6bdb5d468 EC2: Allow AMI boot mode to be specified
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".

Sponsored by:	https://www.patreon.com/cperciva

(cherry picked from commit 0aa2a94ea6)
2021-09-25 09:11:48 -07:00
Colin Percival
242d1c32e4 Add support for recording EC2 AMI Ids in SSM
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

(cherry picked from commit c5af0ac1a7)
2021-09-10 18:30:19 -07:00
Colin Percival
d9242253a0 EC2: Tell gptboot to skip its 3 second wait
Nobody is going to hit a key to tell gptboot to select another disk,
so there's no point waiting.

(cherry picked from commit 524260db76)
2021-09-10 18:27:58 -07:00
Mina Igalic
1516cd8735 pkgbase: make only vital packages vital, not their sub-packages
make "vital" a replaceable, which defaults to "false" and only set it for
the main clib, utilities and runtime packages, not their sub-packages

PR: 254174
Differential Revision:	https://reviews.freebsd.org/D29224

(cherry picked from commit 1c1ff79795)
2021-08-16 18:15:46 +02:00
Emmanuel Vadot
e99783747e pkgbase: Add an src.conf option for splitting man pages
Man pages can be big in total, add an options to split man pages
in -man packages so we produce smaller packages.
This is useful for small jails or mfsroot produced of pkgbase.
The option is off by default.

Reviewed by:	bapt, Mina Galić <me@igalic.co>
Differential Revision:	https://reviews.freebsd.org/D29169
MFC after:      2 weeks

(cherry picked from commit c7e6cb9e08)
2021-08-16 18:13:51 +02:00
Emmanuel Vadot
624d52af5b pkgbase: Create a FreeBSD-nfs package
And move all the nfs related commands there.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D30754
Sponsored by:	Diablotin Systems
2021-06-30 09:24:32 +02:00
Emmanuel Vadot
9e4940840d pkgbase: Put dtrace in its own package
While dtrace is usefull some people might not want it.

Differential Revision:	https://reviews.freebsd.org/D30752
Sponsored by:	Diablotin Systems
2021-06-30 09:24:32 +02:00
Emmanuel Vadot
632e3f2f3a pkgbase: Put openssl in its own package
This is useful for upgrade and also to make tiny jail so they won't
depend on FreeBSD-utilities (where openssl was packaged before).

MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D30081
2021-06-30 09:24:31 +02:00
Emmanuel Vadot
a86ba45ed7 pkgbase: Remove case for runtime and jail package ucl generation
They aren't needed and produce wrong package comments :
We use to have "runtime-dev package" instead of
"FreeBSD Base System (Development Files)" for example

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D29168
MFC after:      2 weeks
2021-06-30 09:24:30 +02:00
Glen Barber
e287201998 release: fix ports checkout if /usr/ports does not exist
Reported by:	Yasuhiro Kimura
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit c0dbc49ab3)
2021-05-12 12:10:09 -04:00
Glen Barber
0ed1051313 release: remove logic to locate the svn{,lite} binary
Approved by:	re (delphij, insta-MFC)
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 69b6abb7b2)
2021-05-12 11:52:53 -04:00
Glen Barber
929bf5b637 release: follow-up to previous commit to use Git for the ports tree
Approved by:	re (delphij, insta-MFC)
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit fb6e261c20)
2021-05-12 11:52:23 -04:00
Glen Barber
18fe422139 release: update release.sh to use Git for ports tree checkouts
Approved by:	re (delphij, insta-MFC)
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 3f25cfea55)
2021-05-12 11:51:53 -04:00
Glen Barber
716f5ae59a release: permanently remove the 'reldoc' target and associates
Following 7b1d1a1658, the structure
for the reldoc target has significantly changed as result of the
ASCIIDoctor/Hugo migration.  As the release notes related files
on the installation medium are inherently out of date, purge them
entirely.

Discussed within:	re, doceng
No objection:		re (silence), doceng (silence)
Timeout:		2 weeks
Sponsored by:		Rubicon Communications, LLC ("Netgate")

(cherry picked from commit f61e92ca5a)
2021-05-12 10:49:08 -04:00
Glen Barber
aa4eb20897 pass UNAME_r to fix building 14.x ports on 13.x
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 80ab50e1de)
2021-04-29 11:55:46 -04:00
Glen Barber
fb3ce5331c release: fix VMSIZE following 1ca8842f3a
truncate(1) is not case-sensitive with regard to setting the size
of a file.  makefs(8), however, does not honor upper-case values.
Update release-specific files and the release(7) manual page to
reflect this.

Submitted by:	ehem_freebsd_m5p.com (original)
Differential Review:	https://reviews.freebsd.org/D28979
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit fa04db4762)
2021-04-29 11:52:42 -04:00
Glen Barber
5a3548f2e2 release: do not set __MAKE_CONF and SRCCONF for the chroot build
PR:		254319
Submitted by:	truckman
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 0af8a2db34)
2021-04-29 11:45:46 -04:00
Glen Barber
0490d82ace release: sync 'git count' logic with newvers.sh
Sync determining the git count with newvers.sh by adding the
--first-parent argument.  This ensures uname(1) reflects the
file name for snapshots.

Reported by:	Mark Millard
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit e5c6913a8d)
2021-04-29 11:44:46 -04:00