From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1hP29w-0004z3-VS for rauc@pengutronix.de; Fri, 10 May 2019 11:49:45 +0200 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23991965AbfEJJtovJFlN (ORCPT ); Fri, 10 May 2019 11:49:44 +0200 Date: Fri, 10 May 2019 11:49:43 +0200 From: Ladislav Michl Message-ID: <20190510094943.GD29451@lenoch> References: <20190510094803.GA29451@lenoch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190510094803.GA29451@lenoch> Subject: [RAUC] [PATCH 3/3] Bind mount seed slot List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" To: rauc@pengutronix.de Cc: Trent Piepho U2VlIHRoYXQgRklYTUUuLi4KLS0tCiBzcmMvdXBkYXRlX2hhbmRsZXIuYyB8IDMxICsrKysrKysr KysrKysrKysrKysrKysrKysrLS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCAyNiBpbnNlcnRpb25zKCsp LCA1IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL3NyYy91cGRhdGVfaGFuZGxlci5jIGIvc3Jj L3VwZGF0ZV9oYW5kbGVyLmMKaW5kZXggYjhkMDQ0Zi4uNmY0OTBkMCAxMDA2NDQKLS0tIGEvc3Jj L3VwZGF0ZV9oYW5kbGVyLmMKKysrIGIvc3JjL3VwZGF0ZV9oYW5kbGVyLmMKQEAgLTEsNiArMSw3 IEBACiAjaW5jbHVkZSA8ZXJybm8uaD4KICNpbmNsdWRlIDxmY250bC5oPgogI2luY2x1ZGUgPGdp by9ndW5peG91dHB1dHN0cmVhb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