freebsd / poudriere

Port/Package build and test system
https://github.com/freebsd/poudriere/wiki
BSD 2-Clause "Simplified" License
396 stars 164 forks source link

Jail method: pkgbase: updates are logged to /var/log/messages on the host #1167

Open grahamperrin opened 3 months ago

grahamperrin commented 3 months ago

Prerequisites

Issue

There's potential for confusion with pkgbase-related messages for jails, and for the host for those jails, written to:

From the attached transcript:

…
% tail /var/log/messages
Aug 26 09:18:22 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-libbz2-lib32 upgraded: 14.snap20240408144247 -> 14.snap20240825063730 
Aug 26 09:18:22 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-runtime-lib32 upgraded: 14.snap20240521025322 -> 14.snap20240825063730 
Aug 26 09:18:23 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-efi-tools-dev-lib32 upgraded: 14.snap20240425073453 -> 14.snap20240825063730 
Aug 26 09:18:23 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-netmap-dev-lib32 upgraded: 14.snap20240512002316 -> 14.snap20240825063730 
Aug 26 09:18:23 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-efi-tools-lib32 upgraded: 14.snap20240503062609 -> 14.snap20240825063730 
Aug 26 09:18:23 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-libcompat-dev upgraded: 14.snap20240510162127 -> 14.snap20240825063730 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-clibs-dev upgraded: 14.snap20240601092622 -> 14.snap20240825063730 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-smbutils-dev-lib32 upgraded: 14.snap20240521041605 -> 14.snap20240825063730 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-libstdbuf-dev upgraded: 14.snap20240408144247 -> 14.snap20240825063730 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 14.snap20240512002316 -> 14.snap20240825063730 
% uname -mvKU
FreeBSD 15.0-CURRENT main-n271827-c3516c6533a1 GENERIC-NODEBUG amd64 1500023 1500023
% poudriere jail -i -j 14w
Jail name:         14w
Jail version:      14.0-STABLE
Jail arch:         amd64
Jail method:       pkgbase
Jail mount:        /usr/local/poudriere/jails/14w
Jail fs:           internalssd/poudriere/jails/14w
Jail updated:      2024-08-26 09:18:24
Jail pkgbase:      disabled
% 
% grep FreeBSD-kerberos-lib-dev-lib32 /var/log/messages
Aug 24 17:17:31 mowa219-gjp4-zbook-freebsd pkg[32982]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 15.snap20240823184136 -> 15.snap20240824054530 
Aug 24 18:35:47 mowa219-gjp4-zbook-freebsd pkg[4889]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 15.snap20240823184136 -> 15.snap20240824054530 
Aug 25 07:58:16 mowa219-gjp4-zbook-freebsd pkg[96725]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 15.snap20240824054530 -> 15.snap20240824132014 
Aug 25 09:08:40 mowa219-gjp4-zbook-freebsd pkg[6548]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 15.snap20240824054530 -> 15.snap20240824132014 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 14.snap20240512002316 -> 14.snap20240825063730 
% 

I know that:

(I know it, only because I keep a fairly detailed record of each update to the host.)

poudriere jail -u -j 14w, 2024-08-26.txt

Thoughts

Is there some way for a poudriere jail with the pkgbase method to not mix its update messages with those of the host?

Thanks

Manual pages

poudriere-jail(8)

syslogd(8)

hier(7)