From owner-freebsd-questions@freebsd.org Thu Dec 8 10:22:49 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3394DC6A9AE for ; Thu, 8 Dec 2016 10:22:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 925291221 for ; Thu, 8 Dec 2016 10:22:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Thu, 08 Dec 2016 11:25:04 +0100 Received: from r56.edvax.de (port-92-195-28-64.dynamic.qsc.de [92.195.28.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 022523CC56; Thu, 8 Dec 2016 11:22:37 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id uB8AMaCd002020; Thu, 8 Dec 2016 11:22:36 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 8 Dec 2016 11:22:36 +0100 From: Polytropon To: Jack Raats Cc: Subject: Re: Different output dmesg and freebsd-version Message-Id: <20161208112236.dc50168f.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with 359FB6A35BA X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.8235 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2016 10:22:49 -0000 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, ...