Date: Mon, 21 May 2007 16:05:35 -0400 From: Jung-uk Kim <jkim@FreeBSD.org> To: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= <des@des.no> Cc: cvs-src@FreeBSD.org, Doug Barton <dougb@FreeBSD.org>, "Ralf S. Engelschall" <rse@FreeBSD.org>, cvs-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d hostid Message-ID: <200705211605.37546.jkim@FreeBSD.org> In-Reply-To: <86myzygda0.fsf@dwp.des.no> References: <200705211144.l4LBiEHY098477@repoman.freebsd.org> <200705211548.46790.jkim@FreeBSD.org> <86myzygda0.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 21 May 2007 03:57 pm, Dag-Erling Smørgrav wrote: > Jung-uk Kim <jkim@FreeBSD.org> writes: > > 'smbios.system.uuid' is exported from loader, not from kernel. > > And it already checks two things, i.e., all zero's and all > > 0xff's, which are the most common and 'useless' UUIDs. If the > > SMBIOS has one of these, it is not set at all. > > Is it safe to assume that smbios.system.uuid returns a string of > the correct form (the correct amount of hex digits with hyphens in > the right places) which is neither all-bits-zero nor all-bits-one? > In that case, there is no need to check anything in etc/rc.d/hostid. Unless someone mistakenly sets it from /boot/loader.conf, that's correct. ;-) Jung-uk Kim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705211605.37546.jkim>