From nobody Sat Apr 4 07:37:52 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 4fnnWM1dthz6Y7BJ for ; Sat, 04 Apr 2026 07:38:07 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fnnWL4QJ5z4PBC for ; Sat, 04 Apr 2026 07:38:06 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-66bf15430ecso4532897a12.3 for ; Sat, 04 Apr 2026 00:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775288284; cv=none; d=google.com; s=arc-20240605; b=MX16kL73FwlDG87lF2JLObHfUQjHpTn0Bg32mmpAoClF3owFdRYhQL0sy0qcMT2dDD y5vt2cWvy+2mHSygFoVnogLdObepovQuFsUD3KvWPCjnfRqqO5Fg6J6au2AvaDsgaj9v 7ABIFrJCC8JTlpz3rJ75XsLI2oUFIok78mvbvFas+rWlUILjBa5sykBHHyea8kzqO9KJ D/iahGV6Otokj0xLJqD67Yl32GxqIeN9Y6kT/3FcUwmKx+oIeQlfmC8DQp3CHY8w69az bF7DWZvubxnReTbmdo+u0FQd5T/GuPNgFm3i6esZzFHX5ny2pduuW7kX0vBXwmXStDq9 BO4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mrzepVc9aOPtLR7xbqLO3l6elvi1KBJOnjiMre8P64o=; fh=BAkA5DZ7wCM8oN7B/4Xl1qQ9ZgWmjMd71Axn7xEoXys=; b=JpoP56lgfCGWiQLOg4ggZXswwiBhb2TpBjijTXV+i52iSuD2rVyi9ZnWKOWd4VEene dtfGZ6P50ndaShp+yCjCHcwnsK+BMcK7EgIMhQBnK7Z+g131oCf8s+L12M2k2+BkKvfV R/yZJbsVOUloyaWYgzsoHqXw73B1a/igl9L3ZQFdv1e5IMgiB+L6NooSSUAnU2RMb0eY 3RbQG4s5BlHyJ/JfNnomUtkDbWbyjD5cuLAXAXUAf/uDZAEfv+0Acxl0fgtKQcT1obzu VQ5F+ge1Wh13xZ9vG1HgtTl78toWZvJrnkzBIrLrELHfIYYaKOv4A50SBHhqcEyin5ic 1E1Q==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775288284; x=1775893084; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mrzepVc9aOPtLR7xbqLO3l6elvi1KBJOnjiMre8P64o=; b=kuL4VlWaJqivTdPdy2wL9zFx/Vw36yVHJMKC8rAbiLOFzRWjRo6x7DBpjIfu6Gq3BN qT/hNfaI11hKOeH/tyUbCkTt7vHeM5Fu07VL4T24diOumqthvEg+NGpIkgJkSeJ38uPW eQ+D2xaGzvRi0R64yf2uadkwbWlhuDMiBSxuiVZoxG8Fun6R8xHQ3CNV3DKn+U/xY1HG V5SZaUeRkJd+PnLh9q5D+f00GEgg2Y1ezSzM7X2zc1lzSzL1FsXGnm2LWhrYsTwOpGAv ImjZ10ZrZbPRGileGV7Hdqt6LuwukmDniW7MNgUt90DlSRYGniCTDtp6YBO2YLdyLXlH Kr4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775288284; x=1775893084; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=mrzepVc9aOPtLR7xbqLO3l6elvi1KBJOnjiMre8P64o=; b=kJ46fgE/cTbu9tWf8PDG2ZAFrqZy0S4ZslQyB9nUR+qAx/cS8kowtIfug1JzE9825J bPyR9SrDBDRBF2fvgjhsWnShjWF8IrlUHW96+jzGa2FMlGHFwRd8Qv7hasQtVF74L+6R BAzio3eDmE//mcabJMmS0BPAMCkSbKaXxVHSkixcLcd7ZPx1jVbgH3vNLd058Fb8Efoo 3EsD0GDw3cD4DrfJtS4Gmx0ZhcUTo+wOW/5gwCIY2TiWp5huvalPUlJ/fj3WuE9Wdgxt Af9Iq3y9RKwnTTIPVEEr8uNdASQ4HzeExibVXkUrT8go3Z6iYb4lDR0/SME4Qg/jzMgC hGFg== X-Forwarded-Encrypted: i=1; AJvYcCUUblIQqsEDr7rAnj7zFCxqjat5GfLmPnEUCUcIQPcyOVeeDecgcLkjzChxNE1tuxu0PyqKwXr2h0ckwttyY9E=@freebsd.org X-Gm-Message-State: AOJu0Yz+hLzq1RMgJLfyOPIhcjTtoHnjJLSdrtOnnWjFv4y0pvprbaP8 57RuAfp2KyjmXIgWWL9/QdazatRPM1Ar77qot446K6xLaF8KSPeUNk2NXLghLZE0DESh4/9yVu4 xTtTvv3fLNPTIvzPgJCeF9lDEeo9niw== X-Gm-Gg: AeBDiesFB2BY8fcvPA90Oicj6Sqenq4+dKj7GysD9+GOkh9GfzW+Xa/f8EfV1DbbE+m dwDsjr4kR5aSflTnY4ZdVXdROZryOVPEk9PPrY+WPNcGrRSPbU+wJJOXHg22f1ALDJvAkxAnsRS 7jLBNKdIB8SekHylLio/aW7niIwDeuMEjAez5uJofSf5qzLdksnd64nWZSxEiCYtF81gMePJ0lI HNz4MUX9kF5HPYiYz6s4S6VDCW3ETQKWkCDiOcnriudq6cBEBv8GtALDxti4Rd9YMutGXUJiSHI cZ3L3ZVyU8Q2AdjixzwKSUFYFi9geE5zLSKI5os= X-Received: by 2002:a05:6402:434a:b0:66e:809f:39e1 with SMTP id 4fb4d7f45d1cf-66e809f3a61mr712564a12.4.1775288283420; Sat, 04 Apr 2026 00:38:03 -0700 (PDT) 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 References: In-Reply-To: From: Rick Macklem Date: Sat, 4 Apr 2026 00:37:52 -0700 X-Gm-Features: AQROBzAMjbiYS_y1UHnH-qsCoFulttRPetM3qGMN5z4VwOZ4Lt6Tkhyn_JKX420 Message-ID: Subject: Re: Getting boottime early in booting To: Konstantin Belousov Cc: Warner Losh , FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4fnnWL4QJ5z4PBC X-Spamd-Bar: ---- On Fri, Apr 3, 2026 at 8:15=E2=80=AFPM Konstantin Belousov wrote: > > On Fri, Apr 03, 2026 at 07:13:02PM -0600, Warner Losh wrote: > > On Fri, Apr 3, 2026, 7:05=E2=80=AFPM 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 moun= t, > > > it just returns 0. > > > Any ideas w.r.t. something I can acquire early in booting that w= ill > > > 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 u= efi > > 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. Hmm, do you mean the stuff under /var/db/entropy? If so, that doesn't work for this case, since for an NFS root fs, /etc is usually a memory fs. (See https://docs-archive.freebsd.org/doc/8.4-RELEASE/usr/share/doc/freebsd= /handbook/network-pxe-nfs.html) Without a unique per boot value, things work, it's just that it loops once more during the mount attempt, each time it is rebooted. (Without boring you with the details, each time a seq# gets incremented by 1 and it needs to loop until it gets to the next seq#. I can tweak the mount code so that it doesn't spew out printf()s when it loops.) Thanks, rick > > > > > 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 multiu= ser??) > > > > > > Thanks for any help with these, rick > > > > > > >