From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ns2.lah-a2.de ([84.19.187.99] helo=lah-a2.de) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fE9pi-0002Is-Af for barebox@lists.infradead.org; Thu, 03 May 2018 08:43:24 +0000 Received: from [192.168.0.25] (p5B019D47.dip0.t-ipconnect.de [91.1.157.71]) by lah-a2.de (Postfix) with ESMTPSA id 3E318408232A for ; Thu, 3 May 2018 10:40:13 +0200 (CEST) References: <20180429160125.3193-1-mail@schmidt-andreas.de> <1525271572.17782.13.camel@pengutronix.de> From: Andreas Schmidt Message-ID: <9451da5b-d585-34cc-9d4d-c2645329b760@schmidt-andreas.de> Date: Thu, 3 May 2018 10:42:49 +0200 MIME-Version: 1.0 In-Reply-To: <1525271572.17782.13.camel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8059861930417068793==" Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] blspec: add checking of optional key machine-id To: barebox@lists.infradead.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============8059861930417068793== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="loSoMcrN4jS6Kd1PSvQfQGV4iPFrY3Nrv" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --loSoMcrN4jS6Kd1PSvQfQGV4iPFrY3Nrv Content-Type: multipart/mixed; boundary="TaVncybeeIhSZviGSmk2zegjLPWupCUAx"; protected-headers="v1" From: Andreas Schmidt To: barebox@lists.infradead.org Message-ID: <9451da5b-d585-34cc-9d4d-c2645329b760@schmidt-andreas.de> Subject: Re: [PATCH] blspec: add checking of optional key machine-id References: <20180429160125.3193-1-mail@schmidt-andreas.de> <1525271572.17782.13.camel@pengutronix.de> In-Reply-To: <1525271572.17782.13.camel@pengutronix.de> --TaVncybeeIhSZviGSmk2zegjLPWupCUAx Content-Type: multipart/mixed; boundary="------------E6AB0D9D7E81E0BACF0FD8BC" Content-Language: en-GB This is a multi-part message in MIME format. --------------E6AB0D9D7E81E0BACF0FD8BC Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hallo Jan, On 02.05.2018 16:32, Jan L=C3=BCbbe wrote: > On Sun, 2018-04-29 at 18:01 +0200, Andreas Schmidt wrote: >> I guess, for such an use case Bootloader Spec specify "machine-id" >> key. This patch implement the support for machine-id key. > The way I read https://www.freedesktop.org/wiki/Specifications/BootLoad= > erSpec/ is that the "machine-id" field should contain the ID from > /etc/machine-id, which is basically a UUID: > "machine-id shall contain the machine ID of the OS /etc/machine-id. > This is useful for boot loaders and applications to filter out boot > entries, for example to show only a single newest kernel per OS, or to > group items by OS, or to maybe filter out the currently booted OS in > UIs that want to show only other installed operating systems." I read this part in same way. I think, the patch isn't in conflict with that. And, yes, you're right we would use it not exact in this way. Out /etc/machine-id is building dynamically and would be the same as bare= box choose one. (Same way to set global.boot.machine_id and content of /etc/machine-id) But, all our FW would have different machine-id in dependent of devices and not on OS. The spec says: "for example to show only ...". So I guess, it is not hard requirement. Was I'm wrong? > Your use-case sound like you'd need a way to add a more specific DT > board compatible at runtime.=20 We need a decision witch DT has to be load at runtime. But they are all compatible with the barebox DT. We have only one barebox DT for all devic= es. > Then the existing selection logic would > handle your case as well. Ohh ... ok. And could you explain please, who we could do that? Because, all our DTs are compatible with barebox DT and barebox would choose simpl= e the first one and boot it. Or is using of Bootloader Spec isn't right way, to solve this issue? Regards, Andreas --------------E6AB0D9D7E81E0BACF0FD8BC Content-Type: application/pgp-keys; name="0xFEE0A611BEA6DEA0.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0xFEE0A611BEA6DEA0.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- mQINBFoVzj0BEAC5E6pGpizTI3xk7aMAUAjR0ffORE9J18BXVbyujwWb6AVQ9uyK mQFzHxr2GX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K2yOG9x3cAEQEAAYkCHwQYAQgACQUC WhXOPQIbDAAKCRD+4KYRvqbeoH0ED/9ksr4v1WhCvAPARF0WWfB7VUlhJQcTRHMp mDM1Wm+XinFksYfkCDieABlyxVqT4wFSqRvQUbxhMyH5JnHf/JdX1zWGNeLIZ3ml hn0g2iVEEW3Xkp3nLIdJ6tJK7uGCFqCVKYlvUOUSZO0FF+iM0EDE8y++go1Z3tIE zInJKtEbQVDafXNseOC2fC7t17KLLntapM5EDVxXHG6cwtiM5+1+/EaiUV3qvsq6 kLQQlcw+teCuxWxodKnx+fgnzkQCfcrtVWY/gYUdSi/FMA9BLXsbGvKAH0r1zOtp Gzl+Dy/X0r+8qnVanPhZNvvh0PcuOv+ngKp8IFvlxshNkKFoz/QtvvIzZxkXFrkg 3kD4htpo7ssNfss1cg/KPDimEietwMwqXyFvgfTdCwK/InXLXTug1rNRjxkFlx7m 6MjUe1J20eolV1yzk6Xy1Uum84mbvkIPkJ2tUx1s/cBCfNNVOyqedj/I3KeQC+B4 Kh9flnDRY6kTX8RkvRKAmvEJZ51lfv9HsQBjk2JPcEidTlpWXGksddvpw4xjJAji P88RFFsuqRQvom9yx/YKf/+TaZbR1DnNCMbNuI3IqN5TnFY8Cv2ao8Br5JQaUqzl FQkKDKTjXDwCNoR/5EWGSnpRVLEwWnPISbKUnJPXlVxpsAgEOsd1izmeBdS/jaC/ v9nRtbJIJQ=3D=3D =3DAjyc -----END PGP PUBLIC KEY BLOCK----- --------------E6AB0D9D7E81E0BACF0FD8BC-- --TaVncybeeIhSZviGSmk2zegjLPWupCUAx-- --loSoMcrN4jS6Kd1PSvQfQGV4iPFrY3Nrv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJa6suJAAoJEP7gphG+pt6gfMEP/RTxWvsrPIqyGX7UxhT4yzuF 7HxWbdvmtgtXYMW+Rr4qi1Yg0iwgOTJiovInTdE2D23zNr2ZbbLoiS6sPi6fqCW3 pnd3Ma90wYHbfke3BfQ0BFCq4H3R+ct5bWLlIOwuV5tdSRKIJwZEO6xr+ewuWiKf hg+itRU9zPSfw0fj9BZzX9jnU5YodxqBGwGLQFrDTT31Ojxc99Zc8bRAraTAkxFm 20U18yFVeBuZvodGIH7Cia/WVMXeXY1SeCtVA4vKVIElqwuU1FjAE1HQNB8Ae9U+ wbFED4r+rejwaM//36O9ZYSRpLnQuIhVPkyNYc7FZGV0CEt2WyTmNX/VlGJ5HNeI BagSfPk/gfL2EWn1OyyFinXMNctkzqDqO95cJtOnz481BBi4v85Bb5RdG0c4qlI+ Hd4pGT9BJgQTtr09v+5lc6PU8ct6YO0zEfM8+j0CtSg2jJLc08rfZeZZbxVdSUdH is3VQgGcqvFvy8QzekdN5WF9F7K8NdSYZTBBBFKHZfiJH/bGDAFPhlWQzSmYYiZ5 7QL5DeSl0JdRCDKeW6WrtlucxXCSqzrWFTmCWMMgSggpXCqfBOAogUb6+Be1by92 9H9Q+HXOgc6LN8/nlGYKPHkSQESafAzaOmZUyh3sod/NVj9aeY1MIwx2LXk7D4yz 89OvYLAn5PAPhGHjAQo3 =FoZZ -----END PGP SIGNATURE----- --loSoMcrN4jS6Kd1PSvQfQGV4iPFrY3Nrv-- --===============8059861930417068793== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============8059861930417068793==--