From owner-cvs-all@FreeBSD.ORG Wed Apr 11 00:05:26 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D84D116A404; Wed, 11 Apr 2007 00:05:26 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id B334213C4C2; Wed, 11 Apr 2007 00:05:26 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3B05QeS079262; Wed, 11 Apr 2007 00:05:26 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3B05QcV079261; Wed, 11 Apr 2007 00:05:26 GMT (envelope-from pjd) Message-Id: <200704110005.l3B05QcV079261@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 11 Apr 2007 00:05:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/etc/rc.d hostid X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2007 00:05:26 -0000 pjd 2007-04-11 00:05:26 UTC FreeBSD src repository Modified files: etc/rc.d hostid Log: If available, take UUID from smbios.system.uuid, if not fall back to software-generated UUID. Store the result in /etc/hostid and use it in the future. Perform simple UUID format check, as there is a lot of hardware with broken UUIDs. The check should be improved to also eliminate fake UUIDs like 00000000-0000-0000-0000-000000000000. Requested by: many Revision Changes Path 1.2 +18 -1 src/etc/rc.d/hostid