BSD Ports

sysutils/firstboot-pkg-upgrade 1.4 FreeBSD

Update the system using pkg when it first boots

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
e22698bc7c
License
BSD2CLAUSE
Categories
sysutils
Package size
2.1 KiB, 1.7 KiB installed

Description

Run 'pkg upgrade' when the system first boots to check for any software updates, apply them, and request a reboot.

Obviously, this port is not useful after a system is already running; it is intended to be included as part of the installation or disk image building process.

Install

Binary package:

pkg install firstboot-pkg-upgrade

From the ports tree:

cd /usr/ports/sysutils/firstboot-pkg-upgrade/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	firstboot-pkg-upgrade>0:sysutils/firstboot-pkg-upgrade

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.41.4--1.4
FreeBSD:14:quarterly1.41.4n/a-1.4
FreeBSD:15:latest1.41.4n/a--
FreeBSD:15:quarterly1.41.4n/an/an/a
FreeBSD:16:latest1.41.4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

No options to configure.

Service scripts
firstboot_pkg_upgrade

Files

No file lists for this port.

Commit history 2

DateCommitCreditsLog message
e22698bc7c Colin Percival sysutils/firstboot_pkg_upgrade: Ignore OSVERSION
Don't just ignore OSVERSION for the 'pkg upgrade' command; we also need to ignore OSVERSION for the 'pkg update' and also for the 'pkg bootstrap' (if we somehow don't have pkg installed yet). Rather than setting it individually for each command, export IGNORE_OSVERSION=YES into the environment where it will apply to all of the pkg commands. Reviewed by: ziaee Fixes: b67d354b6656 ("sysutils/firstboot-pkg-upgrade: Ignore OSVERSION") Sponsored by: Amazon Reported by: akiyano Differential Revision: https://reviews.freebsd.org/D59584
b67d354b66 Colin Percival sysutils/firstboot-pkg-upgrade: Ignore OSVERSION
Without IGNORE_OSVERSION=yes, images built from HEAD or stable branches will hang during boot waiting for the user to agree to install updates every time OSVERSION gets bumped. This is a no-op for releases, since OSVERSION never changes there. Reviewed by: ziaee Sponsored by: Amazon Differential Revision: https://reviews.freebsd.org/D59053