bectl, chroot, pkg upgrade, no record of the upgrade in /var/log/messages

Graham Perrin grahamperrin at gmail.com
Sun May 2 11:42:29 UTC 2021


This morning I created a boot environment, mounted it at

/tmp/up

– then chroot to /tmp/up and at 09:52,

pkg upgrade -y -r FreeBSD

Upgrade succeeded. I activated then unmounted the environment, restarted.

No record of the upgrade in /var/log/messages – is this normal?

-------------- next part --------------
% date ; uptime ; uname -v
Sun  2 May 2021 10:48:41 BST
10:48a.m.  up 11 mins, 5 users, load averages: 0.42, 1.45, 1.07
FreeBSD 14.0-CURRENT #93 main-n246330-5eb9c93a20d: Tue Apr 27 05:14:26 BST 2021     root at mowa219-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG 
% grep pkg /var/log/messages | grep -v deinstalled
Apr 26 20:03:02 mowa219-gjp4-8570p pkg[80275]: treeline-3.1.4_2 installed
Apr 26 20:07:37 mowa219-gjp4-8570p pkg[80688]: hnb-1.9.18 installed
Apr 26 20:22:53 mowa219-gjp4-8570p pkg[89092]: wx30-gtk3-3.0.5.1 installed
Apr 26 20:22:55 mowa219-gjp4-8570p pkg[89092]: py37-wxPython40-4.0.7_1 installed
Apr 26 20:51:56 mowa219-gjp4-8570p pkg[93048]: qutebrowser-2.2.0 installed
Apr 27 06:25:59 mowa219-gjp4-8570p pkg-static[5639]: drm-devel-kmod-5.4.92.g20210419 installed
Apr 27 06:26:18 mowa219-gjp4-8570p pkg-static[7041]: gpu-firmware-kmod-g20210330 installed
Apr 27 15:23:50 mowa219-gjp4-8570p pkg[44522]: python38-3.8.9 installed
Apr 27 15:23:50 mowa219-gjp4-8570p pkg[44522]: py38-setuptools-44.0.0 installed
May  1 21:13:28 mowa219-gjp4-8570p pkg[6313]: python39-3.9.4 installed
May  1 21:14:38 mowa219-gjp4-8570p pkg[6390]: py39-setuptools-44.0.0 installed
May  1 21:14:38 mowa219-gjp4-8570p pkg[6390]: py39-sqlite3-3.9.4_7 installed
May  1 21:14:38 mowa219-gjp4-8570p pkg[6390]: mpg123 reinstalled: 1.26.5 -> 1.26.5 
May  1 21:17:43 mowa219-gjp4-8570p pkg[6554]: py38-tkinter upgraded: 3.7.10_6 -> 3.8.9_6 
May  1 21:17:46 mowa219-gjp4-8570p pkg[6554]: py38-numpy reinstalled: 1.16.6,1 -> 1.16.6,1 
May  1 21:22:38 mowa219-gjp4-8570p pkg[6806]: python-3.7_3,2 installed
May  1 21:44:23 mowa219-gjp4-8570p kernel: pid 29584 (pkg), jid 0, uid 0: exited on signal 6 (core dumped)
May  1 21:47:51 mowa219-gjp4-8570p kernel: pid 29621 (pkg), jid 0, uid 0: exited on signal 6 (core dumped)
May  1 21:50:36 mowa219-gjp4-8570p pkg[29809]: py37-wxPython40-4.0.7_1 installed
May  1 21:50:37 mowa219-gjp4-8570p pkg[29809]: jansson reinstalled: 2.13.1 -> 2.13.1 
May  1 21:50:37 mowa219-gjp4-8570p kernel: pid 29809 (pkg), jid 0, uid 0: exited on signal 6 (core dumped)
May  1 22:32:40 mowa219-gjp4-8570p kernel: pid 30078 (pkg), jid 0, uid 0: exited on signal 6 (core dumped)
May  1 22:32:54 mowa219-gjp4-8570p pkg-static[31747]: pkg-1.16.3 installed
May  2 01:23:57 mowa219-gjp4-8570p kernel: pid 39149 (pkg), jid 0, uid 0: exited on signal 6 (core dumped)
May  2 01:25:04 mowa219-gjp4-8570p kernel: pid 39214 (pkg), jid 0, uid 0: exited on signal 6 (core dumped)
May  2 01:25:40 mowa219-gjp4-8570p kernel: pid 39246 (pkg), jid 0, uid 0: exited on signal 6 (core dumped)
May  2 01:26:39 mowa219-gjp4-8570p pkg[39299]: py37-pip-20.3.4 installed
May  2 01:26:41 mowa219-gjp4-8570p pkg[39299]: pkg reinstalled: 1.16.3 -> 1.16.3 
May  2 01:26:41 mowa219-gjp4-8570p pkg[39299]: py37-pbr-5.5.0 installed
May  2 01:26:42 mowa219-gjp4-8570p pkg[39299]: flac reinstalled: 1.3.3 -> 1.3.3 
May  2 01:31:10 mowa219-gjp4-8570p pkg[39546]: py37-pip reinstalled: 20.3.4 -> 20.3.4 
May  2 01:32:56 mowa219-gjp4-8570p pkg[39613]: python37 reinstalled: 3.7.10 -> 3.7.10 
May  2 01:35:15 mowa219-gjp4-8570p pkg[39765]: py37-pbr-5.5.0 installed
May  2 09:51:30 mowa219-gjp4-8570p pkg[62734]: plank-0.11.89 installed
% bectl list -c creation
BE                    Active Mountpoint Space Created
r357746-Waterfox      -      -          59.2G 2020-03-10 18:24
n245827-361e9501800-a -      -          10.9G 2021-04-05 18:48
n246123-21afed4b1d1-f -      -          894M  2021-04-26 03:18
n246330-5eb9c93a20d-a -      -          112M  2021-04-27 06:14
n246330-5eb9c93a20d-b -      -          123M  2021-05-01 17:44
n246330-5eb9c93a20d-c NR     /          117G  2021-05-02 09:52
% sudo bectl mount n246330-5eb9c93a20d-b /tmp/huh
Successfully mounted n246330-5eb9c93a20d-b at /tmp/huh
% grep pkg /tmp/huh/var/log/messages | grep -v deinstalled
grep: /tmp/huh/var/log/messages: No such file or directory
% ls -hl /tmp/huh/var/log
total 1
-rw-r--r--  1 root    wheel    518B 31 Jan 04:52 bsdstats
drwxr-xr-x  2 clamav  clamav     2B 26 Jan 11:55 clamav
drwxr-xr-x  2 root    wheel      3B 30 Mar  2020 ConsoleKit
drwxr-xr-x  2 root    wheel      2B 31 Jan 03:58 cups
drwxrwx--T  2 gdm     gdm        2B 21 Feb 04:38 gdm
-rw-r--r--  1 root    wheel    372K 21 Jun  2020 init.log
drwxrwxr-x  2 root    wheel      2B 21 Jan 03:30 onedrive
drwxr-xr-x  2 root    wheel      2B 31 Jan 04:09 samba4
-rw-r--r--  1 root    wheel    2.7K 13 Sep  2020 sddm.log
drwx------  2 root    wheel      2B 18 Apr 16:21 sssd
drwxr-x---  2 _tor    _tor       2B 26 Jan 23:52 tor
-rw-------  1 root    wheel    216B 23 Feb 08:44 userlog
-rw-r--r--  1 root    wheel     21K 13 Sep  2020 Xorg.0.log
-rw-r--r--  1 root    wheel     12K 13 Sep  2020 Xorg.0.log.old
% sudo pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating poudriere repository catalogue...
poudriere repository is up to date.
All repositories are up to date.
Checking for upgrades (3 candidates): 100%
Processing candidates (3 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
% pkg info netdata | grep Installed
Installed on   : Sun May  2 10:11:45 2021 BST
% sudo bectl umount n246330-5eb9c93a20d-b
% 


More information about the freebsd-current mailing list