Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
infra:servers:updatingfreebsd [2026/06/09 14:02] 37.26.174.181infra:servers:updatingfreebsd [2026/06/22 13:06] (current) – external edit 127.0.0.1
Line 112: Line 112:
 ====== Updating Jails ====== ====== Updating Jails ======
  
-Aside from all the jails on the **bane** server and others, we have a status page jail running UptimeKuma. For understandable reasons, this jail must outlive the other ones to be able to notify us about the othersinstability from time to time. So UptimeKuma is held in a remote FreeBSD server in Chicago called **bespin** (hosted on Vultr), in a jail called **st-01**.+Jails may be **pkgbase** (using ''pkg'' for the base system) or **not pkgbase** (using ''freebsd-update'' / ''freebsd-rustdate'' for the base system). The two are independent: a jail can be pkgbase even if its host is not, and vice versa.
  
-===== What is specific about Bespin =====+**pkgbase** means using ''pkg'' for updating the base system. This is a relatively new practice in FreeBSD, available since 15.0. Before ''pkg update/upgrade'', people would use ''freebsd-update'' (traditional) or ''freebsd-rustdate'' (newer alternative) for updating the OS. See ''/etc/pkg/Base.conf'' for further information.
  
-Bespin is **NOT** pkg-base; meaning you cannot use ''pkg'' to update/upgrade the OS on the host itself. +Note, it is possible to migrate a non-pkgbase system to pkgbase. Look that up if needed.
- +
-By contrast, the jail **st-01** (for **status.abi.am**) **is** pkg-base. The two are independent: a jail can be pkg-base even if its host is not, and vice versa. +
- +
-===== pkg-base vs. NOT pkg-base ===== +
- +
-**pkg-base** means using ''pkg'' for updating the base system. This is a relatively new practice in FreeBSD, available since 15.0. Before ''pkg update/upgrade'', people would use ''freebsd-update'' (traditional) or ''freebsd-rustdate'' (newer alternative) for updating the OS. See ''/etc/pkg/Base.conf'' for further information. +
- +
-In Bespin, ''/etc/pkg/FreeBSD.conf'' has a field saying ''freebsd-base { …, enabled: no, … }'' meaning the host is **not** pkg-base. +
- +
-Note, it is possible to migrate a non-pkg-base system to pkg-base. Look that up if needed.+
  
 ===== Updating pkgbase Jails ===== ===== Updating pkgbase Jails =====
Line 138: Line 128:
  
 You can use ''freebsd-update'' or ''freebsd-rustdate'' **from the host**, targeting the jail. You give ''freebsd-rustdate'' the path of the jail base with the ''-b'' flag and the path of the updating tool with ''-w'', and pass the subcommand at the end to be executed: You can use ''freebsd-update'' or ''freebsd-rustdate'' **from the host**, targeting the jail. You give ''freebsd-rustdate'' the path of the jail base with the ''-b'' flag and the path of the updating tool with ''-w'', and pass the subcommand at the end to be executed:
- 
-<code> 
-freebsd-rustdate -b /path/to/jail -w /path/to/jail/var/db/freebsd-update/ <subcommand> 
-</code> 
- 
-More precisely, in our case we run: 
  
 <code> <code>