From nobody Sun Apr 5 02:31:21 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 4fpGgM1W5Fz6Xy3f for ; Sun, 05 Apr 2026 02:31:43 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (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 4fpGgK2SZmz3Jjf for ; Sun, 05 Apr 2026 02:31:41 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20251104 header.b=LQblcHoJ; 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::535 as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-66bb6eb28acso5407380a12.0 for ; Sat, 04 Apr 2026 19:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775356294; cv=none; d=google.com; s=arc-20240605; b=GFsAidy7Tw6gxC/nPf0mP7htx8hA/QCr3LQqCBEyNs47eiFiCUcpqUSmxtCOZbKd9i 81mPH2I5J80m0GF3yyjbpn0XMwuffvYxt1pemWAMi1VCh9Lsq55bEFj9MR8C8ZZoHsCP paYZbFqoRc3pfHnNGTPldSZuBB3+nCPdW2sNfQ9Pc7c71HZ1tkMa76Pw+CSXN+zuZrQ2 WPrU0TF3u+lhSzwOKRCqPbJ35il8kaD1rkDNShPFUzgl/+cp/zILTgSpvEHALZ/0IwjT pyTgkIKmDYLcSfQW6tVm33ikuTX4Alq37ImSKydCWSSreKTVJPY38XgbGa9YuDsu0Hq4 l+FA== 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=EeR5mVzfH/9aMqCNxZ8gBt4bHQ48LuJOhH1kNS+Ssw4=; fh=/2t7RDVHVL+DuRZdfZ/FkHktsvSS6cz2dKFTm0B9krs=; b=T/Mywcz+LCxCIAQptR/iEJ2G+dRksxEy+PxdV5Dr5t+Yczz5VyTemrvACZ+J9zTkLr CP5EE8dXK5TcliGlREQlJFQs7Kl2oJqsL4r/BD/mDFohRlFo3SvSCAiXsnBq7X15luRj Ozjt+GrAZ1NVzE/U/G4PmgmY+HTWSsfGMFX62aHnbMflbNKwhj48idqiz9ARnYUDXrtI G9GMTsq9pElFQz8rBM4aqmMRIQ8ks/vG2ZbQ2h7hl8soQOScdSi4+1XA74ryx3iatLbA SYopP/FJ6dEz13k2Y+iA8qLIrwHoodedo9FshE7fYjtlvs0rn6xoOhZ8TW2zjfcPaQ3w g9rw==; 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=1775356294; x=1775961094; 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=EeR5mVzfH/9aMqCNxZ8gBt4bHQ48LuJOhH1kNS+Ssw4=; b=LQblcHoJn59KV1ZZgBT7VTwc0rFf8lO5skd7YMe0D5lNt3BN1ydaqiPmIpzkqZbI2Q ID4zW8TG478gZZ+9iBDO3mDM4qxIK0y/uBf+Ac4swuT24Yd4esUeR3UDNvxX3P527wZb 9G1qezrxWMtO9Jruj+k1UAQ0dcaAfPzbSOCW0ydaBKWluXB3eydhX406Rjow7MseNDb3 XNy26uOwFPYnur9jt08VDbkVPAnunLyFqIcSzds9YAlyCK3rRz2iFlHB7vTzfqLLmB6+ R2INqXMb3gzQp6at0DFmSSVaeAGIIw3URJO0FRp4p3F2bvQxyX/3xrnerE+0r2sVMisN dv8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775356294; x=1775961094; 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=EeR5mVzfH/9aMqCNxZ8gBt4bHQ48LuJOhH1kNS+Ssw4=; b=PBPIfsRpYcxhT4M7PugTYLjh8krthnQ9ZbCjru0sPaPNyzr9RLUk9meiFdZaKDJft6 yO8dubcU0h5Uh5FKcoGmUE3xfzDVN3uFODJsXZGxgO3a6f3RJYfFhEdaarrNEDQ/HpOW sgoO17mLU57AkyG2EPvMCt2VXdiY49MNVY3TU5vjBfuKw0+mc4WO3wxaNLC9RlHLEiBy Unoabp9GvQ17t9OBgJXgfCIk1nuYg3AvZdwWTl54aoB0V8i9hlDYFcsvI8Vo0qNIOrCm k+S5P+eQsGM8o40FJPKWCdJhPPDMdD+t1Q68BXp3pJ8ILlkLTWj2RuWIAPzOr3VigbDF qoIA== X-Gm-Message-State: AOJu0YwlRvVgrGda0jiaCVlbvCiheibWl9zbLBolsgpfZ1bbVdqOXtug hnFYa1Nd80aaDNXDbvUZTvpPU3Yr/ddyebpqTYMlNS7C6yB4FRl0cktvbIGv9HVbya6/LBKExU1 kNsbr3U3ww6KQgdHvcUk7jyd8I1VH87ND59s= X-Gm-Gg: AeBDievD1VT8fDde51OL4xK1vGwiiaonLZelB2NIL0Ujh6Ymsyyq5PsjW86WeN1jWPU l3+9L+s23khWiviOi40Xa4yVLbjh3YjGI8B3SzmXJlkvxBg1F3IWfke9rmqiZwpLaqC8zCMV+U5 /5wtSMv36T5FNHC8B9Yz6P8AylJDDgxMbDeqsu0p5ffoq8GhFd5jyGFiwu4I9YsxhPmHCrOfvXB hBO7/h96eWyb3o93Fr56JaFfVtwruFvgQTZCm+3GHepq7CbmY4wY2qahJZ8mQ4y5qa8NFXpld6u WW9Lx9CA73fptagwNTeg7ElZZPiAUN7DZVoXYw== X-Received: by 2002:a17:906:d009:b0:b96:e0b1:ccf4 with SMTP id a640c23a62f3a-b9c67b474e1mr274455166b.47.1775356293526; Sat, 04 Apr 2026 19:31:33 -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 19:31:21 -0700 X-Gm-Features: AQROBzBDzryjpCAXJL4RGiNjrwC4XTp9r7CCDCHgi5MnFtz3yO2qN33OWvgHDE8 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 [-5.00 / 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(-1.00)[-0.999]; 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]; 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]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; 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::535:from] X-Rspamd-Queue-Id: 4fpGgK2SZmz3Jjf X-Spamd-Bar: ---- On Sat, Apr 4, 2026 at 5:53=E2=80=AFPM Rick Macklem wrote: > > 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 wil= l > > 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 multiuse= r??) > Btw, in case anyone is interested, #2 was caused by the conf/base/var.cpi= o.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/ha= ndbook/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 multipl= e > 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.u= uid > 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 probl= em.) Actually, unless the file is needed, just deleting /etc/hostid from the read-only root fs works (the kernel sysctls get set). Oh, and the current version of the Handbook section (I just noticed that the google ai found an old version) does mention the 5Mbyte limit for /etc and /var. I did find that the recommended setings for the dhcpd.conf aren't that great. I think it is better to specify fixed addresses based on the MACs. A good example is in this wiki. https://wiki.freebsd.org/MateuszPiotrowski/BootFreebsdFromNfs rick > > Anyhow, if someone on the doc side feels like improving the above a littl= e, > that would be nice, rick > > > > > Thanks for any help with these, rick