From nobody Sun Apr 5 00:53:24 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 4fpDVJ4k7Kz6Y2gM for ; Sun, 05 Apr 2026 00:53:44 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 4fpDVH3dNPz46l9 for ; Sun, 05 Apr 2026 00:53:43 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20251104 header.b="VX30Fd/8"; dmarc=pass (policy=none) header.from=gmail.com; arc=pass ("google.com:s=arc-20240605:i=1"); spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-66d65646c65so2401846a12.1 for ; Sat, 04 Apr 2026 17:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775350417; cv=none; d=google.com; s=arc-20240605; b=klfbmnVevAFIhjXcAs3U4w/mkUtQxn1tF3D8E3vSbFsvfJbXPl/2Bi18Q3bImsOaFO wvhIfjxqKWknvdiyFQ9TtUw4QFdWrvh3M5+CfksudZa3LVoBGNKDwLhaJ4xUuVLZaW9J VlbzL9HfxZyQLbyWoGOP4768MOxHHhN54D7BrTU84ENkfFBcBJDxVphE11OD5Qt/gUDm gxt3GT9A8ZsYpBD3Z727fO4vldn4hSrwGViDOi/I9aADcavXMChT2uDVuk9S02sjSWBH TlcnDIN0+++LsubVTcR06fk3k6sQZNxYgq/fOE0p/mFTqivmDOsaAwKKXbFMs+CEKYnu jFSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PCDH/P3+J4yzQygYuWNxyzt+HReRGkihuRU10p4O4js=; fh=/2t7RDVHVL+DuRZdfZ/FkHktsvSS6cz2dKFTm0B9krs=; b=WnhZNM1kofVEOFW4LSd/wGp35F3yNzVmnQ470U5UEJau6Dag233r5BNdDUmoHrRz6A q0vhOzFFsPYL9a/dGecXKmFtSwrEFWjCYJ37/aNg8S/yFIqJHDT8RjOoRPup3LsPuFrn auRK0S2nB5SH7UagjBkbeNf7gPFxDprasmJ7lgoqYlHtT168QEM8fTOvWXu/zEJApVf7 CoP3309jRku0wpoG9Q/0wl3nhptaCeBCZ8bFrA0DojNqFBDjO+GOqU0mqhVqie9wBo6W Ve7ceZs3ALUkxsxVud2urmiTfzhowPXufqjeOfoUYEtet30BFZHs9wkjxjSJMsJ32Xlx ZpoQ==; 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=1775350417; x=1775955217; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PCDH/P3+J4yzQygYuWNxyzt+HReRGkihuRU10p4O4js=; b=VX30Fd/8yHq5BpVS7s4JWM49PnqbhFkCYI26uhJ/B/SyBQshrofzVl7lRSox/Uaps1 GOnJQ8SyeeFFyl0gNdroj3w64xfSQkdQXz0mjDcYbdvL7+QX8dWDGifp8ZI3yO9QBqKl XwYsv4L1uXxJOaT36TreJfIrvaS/H47c4PiZqRanI+iTR5WPSds0IzSjJeCssIpd7SPV akJuvOq00Y7j7sT1jE394WsEMBlyxKyGde8uZVpoKbTIgR3UDK6AMusqWvhI53wQtl3H jEEF4ui7jEJRto/kmQUcDTenXrOcnf/mas9YAPqcNB8mRyer5A1HaDrRs5KxBSzDAerN 22dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775350417; x=1775955217; h=content-transfer-encoding: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=PCDH/P3+J4yzQygYuWNxyzt+HReRGkihuRU10p4O4js=; b=Sh4VYAA5pu9KKq7lQg0Jz2moB/CfnqhCHCj9087KN4GViSzy2Fyoaj/sst7ME9sRfb LAJzS60kTBUqZg6VSy7t14QyschwklbN8OG8tMVJDcwo2Gti0TCUW3A7X7rqSx38bvNe 9WQSM0VO5zdHnwwAKi+aiVbR27kWsPZEPY5enQ0bGT2hWxLq/2gi4d0WvacKXVLb72tz 2qzmyg2cAU2/0alcmoTEh1/7XJjKzgNmdm8nvFSolGVWGvR5/bJS+glf+P+oLvFzvDX6 iWgvW6apP69ikUmPi5AJJsCAExnw8Mp6oAHVZCGHHL+X2C11dj7hmQIYpkF5wt515oa8 Rr7w== X-Gm-Message-State: AOJu0YyfrY4E4Fh4uAx/NmLSlAquqqqkCJy6XWRkZs9OJyriecr7vfa9 CmLxgB5Cg5Knd2X4P6VMxn39W9PlkxJ9ld5K9WlE1h2pVX/X3h3xzuUSB4hY61IJ1VBZoikicUN GIm7LAaDYe/CNawoPsZ3tfOrwuIzEMHFhI/Y= X-Gm-Gg: AeBDieu0Yqjgqd5YSmvmjyPsFGrxk7+10Gz3bL52eOvoQrNJ6KqeP6QyQg0HEqLPaDc sVehNFCRfm+Hw3jlosRObHujR3winhEZpPxGff6m+Xe/Icu+vwl2tSlM8bZZV+alDMor5qnw+BF PVtceJwUA63mTDPGYitJnIqHZbTxD5xF+kL/8fKAOIdYOsEudAhcPWAGFipWvuI6sPbiP1gBsXe lICVv0SilLF7BxWkBR9LIQh4Xr8gj9qIpeD72hhp8eWfC7U16xMbvGA6GbDezJU7fMqevzeVAH+ 5CehtbtdCh+TmExsD0lWoo6EkN+LhAmIELNXgg== X-Received: by 2002:a05:6402:524a:b0:66c:191e:3802 with SMTP id 4fb4d7f45d1cf-66e07c5f416mr5140446a12.16.1775350416618; Sat, 04 Apr 2026 17:53:36 -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 17:53:24 -0700 X-Gm-Features: AQROBzAOaisF0RUni45NJJljWH6-CwrdLQmwjZrxG41DKY1g7yJPZ5oooXYiD7M Message-ID: Subject: Re: Getting boottime early in booting To: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.99 / 15.00]; ARC_ALLOW(-1.00)[google.com:s=arc-20240605:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20251104]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::532:from] X-Rspamd-Queue-Id: 4fpDVH3dNPz46l9 X-Spamd-Bar: ---- On Fri, Apr 3, 2026 at 6: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 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? > > 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?= ?) Btw, in case anyone is interested, #2 was caused by the conf/base/var.cpio.= gz file (used to create the md fs for /var) was too big for a 5Mbyte md. (Getting rid of some stuff in it fixed the problem.) I now have a NFSv4.2 root fs working ok, thanks to some help here w.r.t. getting a new value upon each boot. https://docs-archive.freebsd.org/doc/8.4-RELEASE/usr/share/doc/freebsd/hand= book/network-pxe-nfs.html is pretty good, but does miss a couple of things. There's making sure the files for the md file systems aren't too big (or configuring the md's to be larger) and there's /tmp, which isn't mentioned. --> There is also dealing with setting up hostuuid when there are multiple clients using the read-only root fs. I'm not quite sure what is appropriate here? - Maybe making /etc/hostid a symlink to a file in /var and then having /etc/rc.d/hostid create the file when it doesn't exist, or something like that. (For systems that don't have smbios.system.uui= d this would result in a different setting each boot, but the only alternative I can think of would be a site local DHCPD option to specify it. (This isn't a NFSv4 problem, but a shared read-only root fs problem= .) Anyhow, if someone on the doc side feels like improving the above a little, that would be nice, rick > > Thanks for any help with these, rick