From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mickerik.phytec.de ([195.145.39.210]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8LGt-0007Gm-UQ for barebox@lists.infradead.org; Wed, 19 Aug 2020 10:24:45 +0000 References: <1597062008-184305-1-git-send-email-r.karszniewicz@phytec.de> From: Robert Karszniewicz Message-ID: <62828c67-f355-d10b-1aed-0f7b152b1b05@phytec.de> Date: Wed, 19 Aug 2020 12:24:37 +0200 MIME-Version: 1.0 In-Reply-To: <1597062008-184305-1-git-send-email-r.karszniewicz@phytec.de> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v3] bootm: add global.bootm.root_dev env var for booting via PARTUUID To: barebox@lists.infradead.org V2hhdCdzIHRoZSBzdGF0dXMgb24gdGhpcywgcGxlYXNlPwoKR3JlZXRpbmdzLgoKT24gOC8xMC8y MCAyOjIwIFBNLCBSb2JlcnQgS2Fyc3puaWV3aWN6IHdyb3RlOgo+IEludHJvZHVjZXMgYSBuZXcg ZW52IHZhciB3aGljaCBzcGVjaWZpZXMgd2hpY2ggZGV2aWNlIGlzIHRoZSByb290ZnMKPiBkZXZp Y2UgdG8gYmUgdXNlZCBpbiBMaW51eCwgcGFzc2VkIHRvIExpbnV4IHZpYSBib290YXJncywgaWRl bnRpZmllZCBieQo+IHRoZSByb290ZnMgcGFydGl0aW9uJ3MgUEFSVFVVSUQuCj4gCj4gZ2xvYmFs LmJvb3RtLnJvb3RfZGV2IHN1cHBsZW1lbnRzIGdsb2JhbC5ib290bS5hcHBlbmRyb290LCBpbiB0 aGF0IGl0Cj4gb3ZlcnJpZGVzIGFwcGVuZHJvb3QncyBuYcOvdmUgZGVmYXVsdCwgd2hpY2ggcG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