From nobody Sat Mar 18 03:52:28 2023 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 4PdnC04zgFz40Fnq for ; Sat, 18 Mar 2023 03:52:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-21.consmr.mail.gq1.yahoo.com (sonic314-21.consmr.mail.gq1.yahoo.com [98.137.69.84]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PdnBz3R2zz4TWR for ; Sat, 18 Mar 2023 03:52:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=DP0fBKdA; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.84 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1679111561; bh=cIEZvKx1Zb04OZdhA7xhX09MqY5185ehFJZRJLnH3i8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=DP0fBKdAxtGXTTt/Jp2yF71G+ZioEU6pU9C/ssFNXL6wCcR0dyMW3fqWJTZMVUhotDZgmvlZTeaCoZJ7QlyzCs2BvvW1vVJNZ4eshCtJKoqAIVqYWXodsU/nbbPoUR/U/gSVs1q6p667DBfmKq+v2z4ZQZ6GW9obqU4woWFD8DcmAu/AXkZGue0L7HdMMpXjZ7gZns7cHsAMot1EPKh/NoFlCTFX6Ib06SlYwmsIoZ4NhMx4V+TRCjak6DwdZRx0MfAIPxX/hFc4/XGAdZLwZeYsdhn1PVhyRcIQj4sUq8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9zvNTSzF27kGmSQdehBGXPe1iBZ.QS3974IV9k7XBDVfZWDVfoM0pb9OmBrPolanrkcYz0Oz _3A_cN15lt8WULTZvBVuqAGu72fcOPaJDax34efoIz0uMJtcD3bJmM.OUEGssjHE9JkD650snVuy CJXmiSm9pPyr1_WkvEu2vtMBMojgrVagAc3nLiJMlBpbr3jL_.ijpbEGVpiSoJxSrP5VML6xwAxp nZSYV_k15hsW65ExEn8r8OBjsJzgdL9FMAj9wLJqCul34FJ6p9S56AN6JNuPxZlKhTMCBQG45bdj ZBUJG5EsLmCBjIquk3rTd2qgpX4wTrlmwx09t8LErFIh7gMAz6UotELKQr8n0Z3vLf.2x3NOXixe fmRTNMZwdM38DMLmNWSEmnNSs68cY2y2YFh052D3oxhmG7zgJzaS.NOK9WS2v7q2eZP0Bu7hO6se iUu_gIRuoxyd7BV7fZv5oH_FmiB.T8RS_nwwvtGdwDdiv1.hrdJ2pCSjI1jFB_vMy5OPyMlYCcZr hPmKXcxWuLGpiQL8aUP4ILoktHJB2MgEvEWFjyIPfysQu2lKDbnp0.e_ci6OzYlL5eCgkWLoSq2p eaLhxtm7pNUpfAGOoz.btbXQie0UZYU6mc_pIJI3i3Zc51A.lq.25i6dKwpPK3ORUCvo4xdptVH. VOyBBpEBzBwy8vAi5lW87qca0fxl5LN0sEaqmnIck6fxrAFHiiwl2l7cG1jlxrto.OLjDbNiQUhS 50qntyg-- X-Sonic-MF: X-Sonic-ID: b9706546-0634-4824-81d0-8acc40b90c34 Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Sat, 18 Mar 2023 03:52:41 +0000 Received: by hermes--production-gq1-6cf7749bc8-q7lrl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c4d4a0b53802a9e6b26d5014239f83c2; Sat, 18 Mar 2023 03:52:38 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: I just updated to main-n261544-cee09bda03c8 based (via source) and now /etc/machine-id and /var/db/machine-id disagree ; more From: Mark Millard In-Reply-To: <91950753-BDE0-45D5-B0B9-42782BD75C47@yahoo.com> Date: Fri, 17 Mar 2023 20:52:28 -0700 Cc: =?utf-8?Q?T=C4=B3l_Coosemans?= , Current FreeBSD , FreeBSD-STABLE Mailing List , Baptiste Daroussin Content-Transfer-Encoding: quoted-printable Message-Id: References: <2cf7d953-2493-9673-5ea3-fba22c694015@freebsd.org> <20230317181547.4d75e897@hal.tijl.coosemans.org> <91950753-BDE0-45D5-B0B9-42782BD75C47@yahoo.com> To: Colin Percival X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spamd-Result: default: False [-3.44 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.944]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.84:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_FIVE(0.00)[5]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.84:from] X-Rspamd-Queue-Id: 4PdnBz3R2zz4TWR X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Mar 17, 2023, at 19:04, Mark Millard wrote: > On Mar 17, 2023, at 18:24, Mark Millard wrote: >=20 >> The 13.1-RELEASE (snapshot) to 13.2-RC3 freebsd-update's >> upgrade sequence did not go well relative to my being >> prompted to do the right thing to establish /etc/machine-id . >> After the last reboot (kernel upgrade, presumably) it had me >> continue with. . . >>=20 >> # /usr/sbin/freebsd-update install >> src component not installed, skipped >> ZFS filesystem version: 5 >> ZFS storage pool version: features support (5000) >> Installing updates... >> install: ///var/db/etcupdate/current/etc/rc.d/growfs_fstab: No such = file or directory >> install: ///var/db/etcupdate/current/etc/rc.d/var_run: No such file = or directory >> install: ///var/db/etcupdate/current/etc/rc.d/zpoolreguid: No such = file or directory >> Scanning //usr/share/certs/blacklisted for certificates... >> Scanning //usr/share/certs/trusted for certificates... >> rmdir: ///usr/tests/usr.bin/timeout: Directory not empty >> done. >> root@generic:~ # cat /etc/hostid /etc/mach* >> cat: No match. >>=20 >> It did not indicate the need for another reboot to >> end up with a /etc/machine-id file. >>=20 >> I tried "shutdown -r now" anyway. It did establish >> an /etc/machine-id file during the reboot: >>=20 >> # ls -Tld /etc/hostid /etc/machine-id=20 >> -rw-r--r-- 1 root wheel 37 May 12 08:46:21 2022 /etc/hostid >> -rw-r--r-- 1 root wheel 33 May 13 09:46:56 2022 /etc/machine-id >>=20 >> So the basic implementation is operational but just >> lacks an indication of the need to reboot again. >>=20 >> The date/time is because it is a RPi4B context (no >> time of its own) and time is not automatically being >> established via ntp, apparently. (I did not make such >> adjustments to the snapshot before starting the >> upgrade.) >>=20 >> I do not know if any of the "install: ///var/db/etcupdate/ . . . " >> lines or the rmdir line are important. >>=20 >> It earlier indicated 5708 patches were fetched and that 377 >> files were as well. >=20 > Using the likes of: >=20 > = http://ftp3.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/13.2/FreeBSD-13.2-= RC3-arm64-aarch64-RPI.img.xz >=20 > directly seems to produce installations with a constant: >=20 > kenv -q smbios.system.uuid > 30303031-3030-3030-3265-373238346338 >=20 > that ends up being what is used for /etc/hostid . >=20 > It looks like this traces back to the U-Boot > involvement in the boot sequence: >=20 > # kenv | grep smbios > hint.smbios.0.mem=3D"0x39c2b000" > smbios.bios.reldate=3D"10/01/2022" > smbios.bios.revision=3D"22.10" > smbios.bios.vendor=3D"U-Boot" > smbios.bios.version=3D"2022.10" > smbios.chassis.maker=3D"Unknown" > smbios.chassis.type=3D"Desktop" > smbios.planar.maker=3D"Unknown" > smbios.planar.product=3D"Unknown Product" > smbios.socket.enabled=3D"1" > smbios.system.maker=3D"Unknown" > smbios.system.product=3D"Unknown Product" > smbios.system.serial=3D"REDACTED" > smbios.system.uuid=3D"30303031-3030-3030-3265-373238346338" > smbios.version=3D"3.0" >=20 Looks like if U-Boot ends up with a system serial number, it uses that as the basis for the system uuid: https://github.com/u-boot/u-boot/blob/master/lib/smbios.c char *serial_str =3D env_get("serial#"); . . . if (serial_str) { t->serial_number =3D smbios_add_string(ctx, serial_str); strncpy((char *)t->uuid, serial_str, sizeof(t->uuid)); } else { t->serial_number =3D smbios_add_prop(ctx, "serial"); } For example (some byte reordering also involved someplace): smbios.system.serial=3D"100000002e7284c8" smbios.system.uuid=3D"30303031-3030-3030-3265-373238346338" # 0 0 0 1- 0 0- 0 0- 2 e- 7 2 8 4 c 8 This explains my seeing the same uuid from 13.1-RELEASE installation as I later saw from an independent 13.2-RC3 installation (not upgrade): I reused the same RPi4B. All media produced on the same RPi4B will get the same hostid and machine-id files by default, given how U-Boot works and that smbios.system.uuid "wins" when present. This may all be fine. But it still leaves me expecting that there should be man page(s) covering these hostid and machine-id files and how they should be handled to match the usages to which they are put, such as the nfs use that was referenced. A note/reminder to look up that material could also be relevant. =3D=3D=3D Mark Millard marklmi at yahoo.com