Page MenuHomeFreeBSD

pkgbaseProject
ActivePublic

Details

Description

For reviews on pkgbase

Recent Activity

Mon, Jun 22

ziaee added a reviewer for D57751: pkgbase release improvements part3: releng.
Mon, Jun 22, 7:29 PM · pkgbase
ziaee added a reviewer for D57742: pkgbase release improvements: releng.
Mon, Jun 22, 7:28 PM · pkgbase
ziaee added a reviewer for D57745: pkgbase release improvements part2: releng.
Mon, Jun 22, 7:28 PM · pkgbase
ziaee added a project to D57751: pkgbase release improvements part3: pkgbase.
Mon, Jun 22, 7:24 PM · pkgbase
hs.freebsd_id.omnilan.de updated the diff for D57745: pkgbase release improvements part2.

Remove unintentionally included failsafe handling

Mon, Jun 22, 4:43 PM · pkgbase
hs.freebsd_id.omnilan.de added a project to D57745: pkgbase release improvements part2: pkgbase.
Mon, Jun 22, 4:39 PM · pkgbase
hs.freebsd_id.omnilan.de requested review of D57742: pkgbase release improvements.
Mon, Jun 22, 1:41 PM · pkgbase

May 8 2026

ziaee closed D56381: sysutils/firstboot-pkg-upgrade: New port.
May 8 2026, 3:35 PM · pkgbase, releng

May 7 2026

bapt accepted D56381: sysutils/firstboot-pkg-upgrade: New port.
May 7 2026, 9:29 PM · pkgbase, releng
cperciva accepted D56381: sysutils/firstboot-pkg-upgrade: New port.

LGTM!

May 7 2026, 5:46 PM · pkgbase, releng
ziaee updated the summary of D56381: sysutils/firstboot-pkg-upgrade: New port.
May 7 2026, 5:43 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

fix comment typos, thanks @cperciva!

May 7 2026, 5:41 PM · pkgbase, releng
ziaee updated the summary of D56381: sysutils/firstboot-pkg-upgrade: New port.
May 7 2026, 5:35 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

implement cperciva/lwhsu sha256 suggestion, thanks guys!

May 7 2026, 5:31 PM · pkgbase, releng
cperciva added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

Fair point, but I'm a little bit concerned about this being brittle -- /var/db/pkg/local.sqlite is not a public interface for pkg, so there's no guarantee that a future pkg won't (a) change that path, or (b) touch that file even if nothing has changed. I don't want to suddenly discover in FreeBSD 16.3 that VMs aren't rebooting after applying security updates because something changed in pkg.

that is a valid concern from @cperciva I don't think I will change anything in that area, but yes the content of /var/db/pkg is supposed to be opaque. (I know I am the one who recommended the mtime check in the first place).

May 7 2026, 4:41 PM · pkgbase, releng
bapt added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

ok, what if we separate the pkg update, and take the state after updating, but before upgrading, then we will actually know if the upgrade did anything. maybe because of this we can simplify the logic at the end a bit more.

I think pkg info | sha256 would work? If any packages are updated (or installed or removed) then that hash will change.

I think it would work too, but I don't see why we wouldn't want to stat the mtime in between updating and upgrading instead. By my rough estimate, time(1) shows 0.08 real for the pkg info | sha256, but for stat -f %c /var/db/pkg/local.sqlite it shows 0.00 real, so, that's less electricity, right?

Fair point, but I'm a little bit concerned about this being brittle -- /var/db/pkg/local.sqlite is not a public interface for pkg, so there's no guarantee that a future pkg won't (a) change that path, or (b) touch that file even if nothing has changed. I don't want to suddenly discover in FreeBSD 16.3 that VMs aren't rebooting after applying security updates because something changed in pkg.

May 7 2026, 4:20 PM · pkgbase, releng
cperciva added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

ok, what if we separate the pkg update, and take the state after updating, but before upgrading, then we will actually know if the upgrade did anything. maybe because of this we can simplify the logic at the end a bit more.

I think pkg info | sha256 would work? If any packages are updated (or installed or removed) then that hash will change.

I think it would work too, but I don't see why we wouldn't want to stat the mtime in between updating and upgrading instead. By my rough estimate, time(1) shows 0.08 real for the pkg info | sha256, but for stat -f %c /var/db/pkg/local.sqlite it shows 0.00 real, so, that's less electricity, right?

May 7 2026, 4:15 PM · pkgbase, releng
ziaee added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

ok, what if we separate the pkg update, and take the state after updating, but before upgrading, then we will actually know if the upgrade did anything. maybe because of this we can simplify the logic at the end a bit more.

I think pkg info | sha256 would work? If any packages are updated (or installed or removed) then that hash will change.

May 7 2026, 1:30 PM · pkgbase, releng

May 6 2026

cperciva added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

ok, what if we separate the pkg update, and take the state after updating, but before upgrading, then we will actually know if the upgrade did anything. maybe because of this we can simplify the logic at the end a bit more.

May 6 2026, 11:42 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

ok, what if we separate the pkg update, and take the state after updating, but before upgrading, then we will actually know if the upgrade did anything. maybe because of this we can simplify the logic at the end a bit more.

May 6 2026, 11:08 PM · pkgbase, releng

May 4 2026

ziaee updated the summary of D56381: sysutils/firstboot-pkg-upgrade: New port.
May 4 2026, 9:53 PM · pkgbase, releng
ziaee added inline comments to D56381: sysutils/firstboot-pkg-upgrade: New port.
May 4 2026, 9:31 PM · pkgbase, releng

May 1 2026

ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

greatly simplify based on cperciva feedback.

May 1 2026, 7:09 PM · pkgbase, releng

Apr 30 2026

cperciva added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

I'm inclined to skip the "figure out if we need to reboot or just restart services" complexity at this point because

Apr 30 2026, 11:47 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

incorperate suggestions by @bapt. Do not reboot unless kernel is updated. In all other situations, including situations where only the pkg database is updated, just restart all services.

Apr 30 2026, 11:21 PM · pkgbase, releng

Apr 22 2026

lwhsu added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

note, i like a blank line at the end of scripts for cat reasons. if we don't want this, i can remove it, but it doesn't hurt anything and we do it all over the place.

Apr 22 2026, 9:29 PM · pkgbase, releng
lwhsu added inline comments to D56381: sysutils/firstboot-pkg-upgrade: New port.
Apr 22 2026, 9:26 PM · pkgbase, releng
lwhsu added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

use logic inspired from @lwhsu to prevent reboot if nothing happened. compare the file size in bytes of the pkg database instead of using pkg inf and checksum to save water/coal. tested on my laptop

Apr 22 2026, 9:23 PM · pkgbase, releng
lwhsu added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.
In D56381#1295532, @ivy wrote:

@lwhsu out of interest, how do you end up with a system that has FreeBSD-base packages installed but doesn't have pkg bootstrapped?

Apr 22 2026, 9:18 PM · pkgbase, releng
ivy added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

@lwhsu out of interest, how do you end up with a system that has FreeBSD-base packages installed but doesn't have pkg bootstrapped?

Apr 22 2026, 8:53 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

use logic inspired from @lwhsu to prevent reboot if nothing happened. compare the file size in bytes of the pkg database instead of using pkg inf and checksum to save water/coal. tested on my laptop

Apr 22 2026, 8:50 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

implement bootstrap pkg if it is not done so already, based on lwhsu feedback, thanks! note, i like a blank line at the end of scripts for cat reasons. if we don't want this, i can remove it, but it doesn't hurt anything and we do it all over the place.

Apr 22 2026, 8:11 PM · pkgbase, releng
lwhsu added inline comments to D56381: sysutils/firstboot-pkg-upgrade: New port.
Apr 22 2026, 6:36 PM · pkgbase, releng
lwhsu added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

btw, you can try to run it with rclint, but I don't usually follow "Do not quote values unless necessary" error.

Apr 22 2026, 6:05 PM · pkgbase, releng
lwhsu added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

Hi, I am also working on this and didn't know this is earlier than me. I think this one is more complete while mine is only focusing on FreeBSD-base repo. However I guess there are still something useful (or not, as I'm still testing):

  • bootstrap/update pkg
  • only reboot when there is pkg updated
Apr 22 2026, 6:03 PM · pkgbase, releng
ziaee updated the summary of D56381: sysutils/firstboot-pkg-upgrade: New port.
Apr 22 2026, 5:22 PM · pkgbase, releng
ziaee updated the summary of D56381: sysutils/firstboot-pkg-upgrade: New port.
Apr 22 2026, 5:10 PM · pkgbase, releng

Apr 14 2026

miguno_miguno.com added a watcher for pkgbase: miguno_miguno.com.
Apr 14 2026, 6:55 PM

Mar 28 2026

adrian added a member for pkgbase: adrian.
Mar 28 2026, 10:27 PM

Mar 25 2026

pete_nomadlogic.org removed a member for pkgbase: pete_nomadlogic.org.
Mar 25 2026, 5:25 PM
brd added a member for pkgbase: brd.
Mar 25 2026, 4:42 PM
pete_nomadlogic.org added a member for pkgbase: pete_nomadlogic.org.
Mar 25 2026, 2:45 PM

Dec 2 2025

ifreund_freebsdfoundation.org abandoned D51516: release: add FreeBSD-base.conf to pkgbase VM/cloud images.

Superseded by 8e0b1a1c03a35a5db13e370cb3e62585d3db68e3

Dec 2 2025, 3:48 PM · pkgbase

Nov 22 2025

gordon closed D53879: Add backup pkgbase signing key held by security-officer.
Nov 22 2025, 7:43 PM · pkgbase
cperciva accepted D53879: Add backup pkgbase signing key held by security-officer.
Nov 22 2025, 6:58 PM · pkgbase
gordon updated the diff for D53879: Add backup pkgbase signing key held by security-officer.
Nov 22 2025, 6:44 PM · pkgbase
gordon retitled D53879: Add backup pkgbase signing key held by security-officer from Add security-officer pkgbase keys to build to Add backup pkgbase signing key held by security-officer.
Nov 22 2025, 6:43 PM · pkgbase
gordon requested review of D53879: Add backup pkgbase signing key held by security-officer.
Nov 22 2025, 8:34 AM · pkgbase

Nov 19 2025

bcr closed D53534: Handbook pkgbase upgrade: Split pkgbase major upgrade to use zfs with boot environments, add workaround lock pkg.
Nov 19 2025, 10:26 AM · pkgbase
bcr accepted D53534: Handbook pkgbase upgrade: Split pkgbase major upgrade to use zfs with boot environments, add workaround lock pkg.

I'll bring this into the doc tree. I'll do a few minor textual fixes before committing, but nothing substantial.
Thanks for the update, it's definitely helpful to have accurate information for users on how to work with pkgbase to upgrade when 15.0 RELEASE hits.

Nov 19 2025, 10:16 AM · pkgbase