From nobody Sat Apr 4 03:13:40 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fngfZ71DHz6Ww7G for ; Sat, 04 Apr 2026 03:13:58 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4fngfZ1h06z3xjd for ; Sat, 04 Apr 2026 03:13:58 +0000 (UTC) (envelope-from kib@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 6343Deua082717; Sat, 4 Apr 2026 06:13:43 +0300 (EEST) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 6343Deua082717 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 6343De1h082716; Sat, 4 Apr 2026 06:13:40 +0300 (EEST) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Sat, 4 Apr 2026 06:13:40 +0300 From: Konstantin Belousov To: Warner Losh Cc: Rick Macklem , FreeBSD CURRENT Subject: Re: Getting boottime early in booting Message-ID: References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=4.0.2 X-Spam-Checker-Version: SpamAssassin 4.0.2 (2025-08-27) on tom.home X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4fngfZ1h06z3xjd X-Spamd-Bar: ---- On Fri, Apr 03, 2026 at 07:13:02PM -0600, Warner Losh wrote: > On Fri, Apr 3, 2026, 7:05 PM Rick Macklem wrote: > > > Hi, > > > > I'm fiddling with a NFSv4 diskless root fs setup and I've run > > into a couple of challenges. > > > > 1 - I need a value that will be different each time the machine boots. > > I would normally use getboottime(), but for the NFS root fs mount, > > it just returns 0. > > Any ideas w.r.t. something I can acquire early in booting that will > > change each time the system is booted? > > > > We don't have this today. And we can't have it without hardware assist... > though you may be ok enough with a value from the rtc. > > There's work to pass the vale from the monotonicly increasing counter uefi > provides. But not on all platforms. We already have mechanisms to ensure that early entropy is provided on boot. Do you care if the value used is indeed boot time, or should it only be unique per boot? With the entropy loading, I believe you would get what you need on any machine with the persistent storage. > > Warner > > 2 - Does anyone know how to fix "could not determine audit condition" > > which I get whenever I try and login when it is multiuser? > > (I can run single user, but since I can't login once it's multiuser??) > > > > Thanks for any help with these, rick > > > >