From nobody Fri Mar 17 18:56:46 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 4PdYJw4hW6z3yj0H for ; Fri, 17 Mar 2023 18:57:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (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 4PdYJw1LgDz3K3l for ; Fri, 17 Mar 2023 18:57:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1679079421; bh=r8CxFguHZ9CHYS0KdEN20aG+U2LGbhe1RZpV575/ii4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=XNadx6MO2HEluYjNLD4LpYdJXo5iO0946bnuVzoYA0EB4m4OfnqsgLbZ48HZv1RJnpqyUqp4y9qAQKp0fZrcF8iYoS917URAmoFUm9OhMzdBOgaYOT7Gi0AVHZqIRQLzJ5suaiA3lywTo6SXI4Gub/XEZI3hx0hW4WIeTQ8r4M8mP21uLcF9n2PFhqDGBltWIvRz5L8SsRmrQhQAbdPjH2Mqyx+yiQgc+W49iH+jGe7gAto7mfE+4rL4KYbiuPen17SMHzEsa8/a0sy3apJyZd4v1ykpk85XfAc3DoayOsP8+hlVgg355ZsHE+nWnc2aTM4uqMbSqS3nQbyMNvxu1w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1679079421; bh=/EuwzEka+DgB/MGyzE6lH0FWWCLh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t1j70w_ Tna6qiMovvPhUOwX_yjpEzQxHdLFa8x9pE6vpRDoerFybThRFAD1Z_Yhmph1AGtZc3vbfahMPf5t cI3rKgdPLcfGN542xmI.Ikm7ZJhzEzCr9VealoW77nNlgHxvs3PVwyKEN2oCdVex0BuYilTp3.vU 74ZqANYt7Ns2hJlJCD_6ca.3BYq5_B0CKxet9AdV_GKqDXhHbXdPYFdLTmReogi5TAcR6iWbE2FL 3ghXm3liZVQrfRrlY.oi9l89N6aqOYoB5TdIizp9HoFlAMaK98IjA_FbER7X6Mj6w0Xhf2ak9SM0 nKLbJ_cuOlvkgGFFNqSv1C0ryfg3rb6wyjWK2bhI64N6veSj_j.YzamPaJB4iQy5HvYj_Zp2BTVw VBt2q3.HpME56VJ7RptE5Xv88OgvDliX7X2O98x2KjTCZzob8MuSNscqHRCKZKnqbjLadnJQZFLr udTILsNaqTh8UyTIsw9Y_P4T7EFgmGtvYui045sYWUyJvyLptigMDNr_lYupeDEnmRXMM7LWeqA6 TF96aOId0ue8xdkyEDbBqj_MjbAihlX.Apf.OYlaWiAq81QFXafCS.Idp08AyXt9Bb1y3igwuo0V TakpY X-Sonic-MF: X-Sonic-ID: 5889bb56-193c-4e98-a2d7-cdd5250b9806 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Fri, 17 Mar 2023 18:57:01 +0000 Received: by hermes--production-gq1-6cf7749bc8-q7lrl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1a416eca30d07b07c3a19c24d1763da5; Fri, 17 Mar 2023 18:56:57 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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: <20230317181547.4d75e897@hal.tijl.coosemans.org> Date: Fri, 17 Mar 2023 11:56:46 -0700 Cc: Colin Percival , 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> To: =?utf-8?Q?T=C4=B3l_Coosemans?= X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4PdYJw1LgDz3K3l X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mar 17, 2023, at 10:15, T=C4=B3l Coosemans wrote: > On Thu, 16 Mar 2023 16:48:40 -0700 Colin Percival = wrote: >> I think the current situation should be sorted out aside from = potential issues >> for people who upgraded to a "broken" version before updating to the = latest >> code -- CCing bapt and tijl just in case since they're more familiar = with this >> than I am. >>=20 >> Colin Percival >>=20 >> On 3/16/23 15:55, Mark Millard wrote: >>> # cat /etc/hostid /etc/machine-id /var/db/machine-id >>> a4f7fbeb-f668-11de-b280-ebb65474e619 >>> a4f7fbebf66811deb280ebb65474e619 >>> 7227cd89727a462186e3ba680d0ee142 >>>=20 >>> (I'll not be keeping these values for the example system.) >>>=20 >>> # ls -Tld /etc/hostid /etc/machine-id /var/db/machine-id >>> -rw-r--r-- 1 root wheel 37 Dec 31 16:00:18 2009 /etc/hostid >>> -rw-r--r-- 1 root wheel 33 Mar 16 15:16:18 2023 /etc/machine-id >>> -r--r--r-- 1 root wheel 33 Mar 3 23:03:25 2023 = /var/db/machine-id >>>=20 >>> I observed the delete-old-files deleting >>> /etc/machine-id during the upgrade. It did >>> nothing with /var/db/machine-id . >=20 > delete-old deletes /etc/rc.d/machine-id, etcupdate deletes > /etc/machine-id. I suppose delete-old could also delete > /var/db/machine-id but the file is harmless so I don't think this is > important for 13.2. Good to know. I'll remove the /var/db/machine-id that hte machines happen to have around. >>> Also, modern hostid generation was switched to >>> random to avoid an exposure. But the update kept >>> the old hostid and propogated it (not "-"s) into >>> /etc/machine-id . So /etc/machine-id now has the >>> same exposure. >=20 > These files are meant to remain constant across reboots, so the update > process cannot change an existing /etc/hostid. For example, it is = used > by NFS servers to restore state when a client crashes and reboots. Good to know. Absent man page(s) describing the princples for handling the hostid and machine-id file(s) (and why), what to report vs. not was unclear. So, for example, historical hostid value takes default precedence over potential adjustment to be random-based instead. That was not obvious to me prior to the explanation. I'm not aware of any place to find that in the man pages or other documentation. > If nothing relies on the old ID you can generate a new one by running > "uuidgen -r > /etc/hostid" and rebooting the machine. Yea, in my context, it appears that I can freely update the files. >>> Later I'll see if stable/13 also got such behavior >>> for its upgrade. >>>=20 >>> I've not been dealing with releng/13.2 but upgrades >>> from releng/13.1 and before likely have the same >>> questions for what the handling should be vs. what it >>> might actually be. Different ways of upgrading might >>> not be in agreement, for all I know. Thanks for the notes. =3D=3D=3D Mark Millard marklmi at yahoo.com