Below, no record of installation in /var/log/messages
How can I use pkg-install(8) with bectl and chroot(8) and have a log of installations?
Alternatively:
Code:
root@mowa219-gjp4-8570p:~ # bectl create example && bectl mount example /tmp/up
Successfully mounted example at /tmp/up
root@mowa219-gjp4-8570p:~ # chroot /tmp/up
root@mowa219-gjp4-8570p:/ # pkg install -r FreeBSD networkmgr
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
networkmgr: 5.5 [FreeBSD]
Installed packages to be REINSTALLED:
libntlm-1.6 [FreeBSD]
Number of packages to be installed: 1
Number of packages to be reinstalled: 1
The process will require 2 MiB more space.
1 MiB to be downloaded.
Proceed with this action? [y/N]: y
[1/2] Fetching networkmgr-5.5.txz: 100% 1 MiB 1.2MB/s 00:01
[2/2] Fetching libntlm-1.6.txz: 100% 26 KiB 26.8kB/s 00:01
Checking integrity... done (0 conflicting)
[1/2] Installing networkmgr-5.5...
[1/2] Extracting networkmgr-5.5: 100%
[2/2] Reinstalling libntlm-1.6...
[2/2] Extracting libntlm-1.6: 100%
root@mowa219-gjp4-8570p:/ # exit
exit
root@mowa219-gjp4-8570p:~ # grep networkmgr /var/log/messages
Jun 26 16:33:56 mowa219-gjp4-8570p pkg[7767]: networkmgr-5.5 deinstalled
root@mowa219-gjp4-8570p:~ # bectl umount example
root@mowa219-gjp4-8570p:~ # bectl destroy -o example
root@mowa219-gjp4-8570p:~ # pkg info -x networkmgr
pkg: No package(s) matching networkmgr
root@mowa219-gjp4-8570p:~ #
How can I use pkg-install(8) with bectl and chroot(8) and have a log of installations?
Alternatively:
Is logging achievable with the--chroot
option of pkg?