dch

dch / bump

Last active 1 day ago

Like 0

a script to upgrade remote FreeBSD systems. - zfs only - base package only - UEFI boot only

dch revised this gist 1 day ago · b653a71

1 file changed, 9 insertions, 4 deletions

bump-freebsd-manually
@@ -3,8 +3,12 @@ local USAGE = [[
3 3 Patch or upgrade one pkgbase host by hand:
4 4 - create rollback boot environment,
5 5 - do pkg upgrades.
6 - Equivalent to the patch_freebsd role, just with no safety guards.
7 - Run on the host:
6 +
7 + Usage:
8 + ssh your-server \
9 + 'doas /usr/libexec/flua - -f -r -u 15.1' \
10 + < ./tools/scripts/bump-freebsd-manually
11 +
8 12 Usage: bump-freebsd-manually [-n] [-b] [-r] [-f] [-u X.Y]
9 13 -n report only: no boot environment, pkg upgrade -n
10 14 (pkg itself is still upgraded, so the report is accurate)
@@ -15,12 +19,13 @@ Usage: bump-freebsd-manually [-n] [-b] [-r] [-f] [-u X.Y]
15 19 -u X.Y release upgrade to X.Y (e.g. 15.1), same major only; a
16 20 -RELEASE or -pN suffix is ignored. Without it the host is
17 21 patched on the release it already runs
22 +
18 23 The host OS is always upgraded from FreeBSD-base, and packages always
19 - from rxv_devops, unless -f is given, in which case from FreeBSD-ports.
24 + from your pkg repo, unless -f is given, in which case from FreeBSD-ports.
20 25 ]]
21 26
22 27 local BASE_REPO = "FreeBSD-base"
23 - local PORTS_REPO = "rxv_devops"
28 + local PORTS_REPO = "pkg"
24 29 local OFFICIAL_PORTS_REPO = "FreeBSD-ports"
25 30 local BE_PREFIX = "patch"
26 31 local MIN_PKG = "2.8.4"

dch revised this gist 1 day ago · cb98b49

1 file changed, 263 insertions

bump-freebsd-manually (file created)

Diff is too large to be shown