Date: Thu, 8 Dec 2016 11:22:36 +0100 From: Polytropon <freebsd@edvax.de> To: Jack Raats <jack@jarasoft.net> Cc: <freebsd-questions@freebsd.org> Subject: Re: Different output dmesg and freebsd-version Message-ID: <20161208112236.dc50168f.freebsd@edvax.de> In-Reply-To: <CC32A2E8-CE4C-4D93-BF58-1171C8721CA0@jarasoft.net> References: <CC32A2E8-CE4C-4D93-BF58-1171C8721CA0@jarasoft.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 08 Dec 2016 06:58:05 +0100, Jack Raats wrote: > The last few days there were a lot of security patches which I > installed using > > ‘Freebsd-update fetch’ and ‘freebsd-update install’. > > After rebooting the system there is a difference between the > output of dmesg and freebsd-version. What _is_ the difference? > A few questions. > > Is the machine running the patched version so freebsd-version > is the right output? In the system log (displayed by dmesg), the kernel version will be logged as issued by the kernel itself. If the kernel was not subject to freebsd-update, its version number won't change - so you have the "old" kernel version and the "new" world version. After freebsd-update, the system will run the patched version, of course. > Is it possible to adjust the dmesg output? (And also motd etc….) The MOTD (/etc/motd) is a text file which you can manually modify. The placeholder for the version information uses the version obtained from the kernel, according to "man 5 motd". Check the setting "update_motd" in /etc/rc.conf (/etc/defaults/rc.conf) as well, and see /etc/rc.d/motd for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161208112236.dc50168f.freebsd>