From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aziqb-0001B9-Tg for barebox@lists.infradead.org; Mon, 09 May 2016 10:55:35 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 9 May 2016 12:55:08 +0200 Message-Id: <1462791308-32168-1-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] partitions: dos: add partuuid string for logical partitions To: barebox@lists.infradead.org Q29tbWl0IGJjMzFkODVjNmUyMyAoImNkZXY6IEFkZCBwYXJ0dXVpZCBzdHJpbmcgdG8gc3RydWN0 IGNkZXYiKSBhZGRlZApwYXJ0dXVpZCBzdHJpbmdzIGZvciBkb3MgcGFydGl0aW9ucyBidXQgb25s eSBmb3IgdGhlICh1cCB0bykgZm91cgpwcmltYXJ5IHBhcnRpdGlvbnMuIERvIHRoZSBzYW1lIGZv ciB0aGUgbG9naWNhbCBwYXJ0aXRpb25zLiBUaGVpcgpudW1iZXJzIHN0YXJ0IGF0IDUgaW5kZXBl bmRlbnRseSBvZiB0aGUgbnVtYmVyIG9mIGF2YWlsYWJsZSBwcmltYXJ5CnBhcnRpdGlvbnMuCgpT aWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBlbmd1dHJv bml4LmRlPgotLS0KIGNvbW1vbi9wYXJ0aXRpb25zL2Rvcy5jIHwgOSArKysrKysrLS0KIDEgZmls ZSBjaGFuZ2VkLCA3IGluc2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pCgpkaW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