On 05/06/2025 19:15, Graham Perrin wrote:

grahamperrin@mowa219-gjp4-zbook-freebsd ~> pkg orphans | grep orphaned\:\ base | wc -l
     518
grahamperrin@mowa219-gjp4-zbook-freebsd ~>

…


Re: the boot environments listed at the foot of this email

Upgrade from 1500044-003-base to 1500044-004-base succeeded. 1500044-004-base was new, mounted but not active, at the time. I normally use --rootdir when upgrading.

With 1500044-004-base active, whilst preparing for the next upgrade, orphans were discovered.

I temporarily activated then booted 1500044-003-base. IIRC the first run of
pkg version -C -vRL= | grep -v orphaned
did find various base packages (correct).

Somehow, things went wrong with 1500044-003-base. IIRC base packages became orphaned, again.

I used bectl to temporarily mount 1500044-002-base at /tmp/down then, at
/var/db/pkg/repos/FreeBSD-base
I ran:
cp -av /tmp/down//var/db/pkg/repos/FreeBSD-base/* .

I created then mounted 1500045-001-base, upgraded successfully, activated then booted 1500045-001-base. No orphaned base packages at the time of writing.

In 1500044-004-base, db-pkgtemp is eye-catching. I don't know whether it was relevant.

----

root@mowa219-gjp4-zbook-freebsd:~ # bectl list -c creation | tail -n 4
1500044-002-base         -      /tmp/1500044-002-base 1.06G 2025-05-29 23:39
1500044-003-base         -      /tmp/1500044-003-base 4.79M 2025-06-01 15:28
1500044-004-base         -      /tmp/1500044-004-base 1.22G 2025-06-02 19:28
1500045-001-base         NR     /                     184G 2025-06-05 19:51
root@mowa219-gjp4-zbook-freebsd:~ # pkg repos -el | sort -f
FreeBSD-base
FreeBSD-kmods
FreeBSD-ports
local-current
root@mowa219-gjp4-zbook-freebsd:~ # eza --long --time-style=long-iso --no-user --no-permissions /var/db/pkg/repos/
- 2024-07-26 12:03 aninstaller
- 2024-09-01 16:28 FreeBSD
- 2025-06-05 19:45 FreeBSD-base
- 2025-06-01 15:25 FreeBSD-kmods
- 2025-05-24 10:46 FreeBSD-ports
- 2025-02-23 15:39 FreeBSD-ports-14
- 2024-07-26 11:58 FreeBSD_install_cdrom
- 2025-06-01 19:56 local-current
- 2025-02-03 14:52 local-poudriere
root@mowa219-gjp4-zbook-freebsd:~ # eza --long --time-style=long-iso --no-user --no-permissions /tmp/1500044-002-base/var/db/pkg/repos/FreeBSD-base
791k 2025-06-01 09:28 db
   0 2025-06-01 15:25 db-journal
   2 2025-02-12 01:30 expired_packages.ucl
   2 2025-02-12 01:30 groups.ucl
   0 2025-06-01 15:27 lock
 173 2025-06-01 09:28 meta
root@mowa219-gjp4-zbook-freebsd:~ # eza --long --time-style=long-iso --no-user --no-permissions /tmp/1500044-003-base/var/db/pkg/repos/FreeBSD-base
791k 2025-06-05 10:44 db
   0 2025-06-05 19:45 db-journal
   2 2025-02-12 01:30 expired_packages.ucl
   2 2025-02-12 01:30 groups.ucl
   0 2025-06-05 19:49 lock
 173 2025-06-05 10:44 meta
root@mowa219-gjp4-zbook-freebsd:~ # eza --long --time-style=long-iso --no-user --no-permissions /tmp/1500044-004-base/var/db/pkg/repos/FreeBSD-base
184k 2025-06-05 15:10 db
 62k 2025-06-05 15:10 db-journal
791k 2025-06-03 12:39 db-pkgtemp
   2 2025-02-12 01:30 expired_packages.ucl
   2 2025-02-12 01:30 groups.ucl
   0 2025-06-05 19:00 lock
 173 2025-06-03 12:39 meta
root@mowa219-gjp4-zbook-freebsd:~ # eza --long --time-style=long-iso --no-user --no-permissions /var/db/pkg/repos/FreeBSD-base
791k 2025-06-05 10:44 db
   0 2025-06-05 19:45 db-journal
   2 2025-02-12 01:30 expired_packages.ucl
   2 2025-02-12 01:30 groups.ucl
   0 2025-06-05 20:10 lock
 173 2025-06-05 10:44 meta
root@mowa219-gjp4-zbook-freebsd:~ # date ; uptime
Fri Jun  6 02:11:14 BST 2025
 2:11AM  up  6:07, 6 users, load averages: 0.86, 0.75, 0.74
root@mowa219-gjp4-zbook-freebsd:~ # uname -bmvKU
FreeBSD 15.0-CURRENT main-n277721-38c655093c6b GENERIC-NODEBUG amd64 1500045 1500045 803e269bc43cf9f9a9b7aec2e58524ef567466a3
root@mowa219-gjp4-zbook-freebsd:~ #


Reply via email to