Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2012544rdb; Thu, 7 Dec 2023 15:54:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IE++18LVKYF3OxlZLetrbme0OlBx+MnY1SvtWC4R3IU9M9dri7jL+iAbVQoros1DEL6xrDp X-Received: by 2002:a17:90b:303:b0:286:da6d:c41 with SMTP id ay3-20020a17090b030300b00286da6d0c41mr3681859pjb.70.1701993294128; Thu, 07 Dec 2023 15:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701993294; cv=none; d=google.com; s=arc-20160816; b=txfVG4tC/Jq4bLJFyytik1nVqEeUA3S2pG29BFiEm91ZI8jKYNQsSH8G1xdZsBGJtK AlxCw2QPrV2uOmWCri6rnlfYpf5GyAHE2myGrNUWp+s2kmZjIHJgxIqsE/VTG8Ltawf8 30/ukYq7EBke5ZGLF598A2xApYGqsscHCNBPLrSt3tbK05kRx9965XvL8+vaR1fk0vnE pnp+P5ITE1uOWTBg2lzp4d+rKI+gvbpAMIdTAvz7v8Y9Eq9oAW2DmjdOSy3oQVM/tU4D VWKQBg6RqTaMOTLkWsd9SOjTSoOeP+7HR9GGiKCtjJCKUN9f8UyxSlKVnLgvPL/jHzNQ BC/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vq2hgQkKc3JWcI8xqah9byh9VPaJ7dPrBzSxulqnUPs=; fh=gfOu9i0qpyaUCCqaLkSZqyspU0QBKUctQCJVZJ5LP/o=; b=plVZNeiwZQtTg0Qtn4MNca/zx0twTd6Vb/6gD+Tc1w1fu42XuQHDBMQrUatFLBpfuw /MnQCHH5aSk6ttxbB55igCpBWJbEjnjiKwp0mo1FPYavX4aUiED1g9MT2JhTMhZnO+KI Kk6S8ATymfqxUazBwXqibjw3pN4U/BQPKZlXlGbP4/lVPdwTLkbr6dgHJqwMv//hWCtX snagLKxnnbCvsHC+ul1bIRl9Lw4oOmDvv7HqpvZpMJqw6McVzeFtG1A0g1WCgltMs1YZ 21v/ms65pwLbxLp2ZT/SIYPDQvf8nk+gOL8PVn0QjMy/1+w9nLurQMJzOwh9nUjdIjOn G5Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ALLXMFc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 89-20020a17090a09e200b00286df9aaaa0si609739pjo.146.2023.12.07.15.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 15:54:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ALLXMFc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5353F80D31E9; Thu, 7 Dec 2023 15:54:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235331AbjLGXyZ (ORCPT + 99 others); Thu, 7 Dec 2023 18:54:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbjLGXyX (ORCPT ); Thu, 7 Dec 2023 18:54:23 -0500 Received: from smtp-fw-80006.amazon.com (smtp-fw-80006.amazon.com [99.78.197.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A83F1716; Thu, 7 Dec 2023 15:54:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1701993268; x=1733529268; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=vq2hgQkKc3JWcI8xqah9byh9VPaJ7dPrBzSxulqnUPs=; b=ALLXMFc2CHm0kjn0/LYTHjDz5i3JoTi+Uo00X6Gaz+dN1h9Jvele8bmm hAm6VjAHRueQZx7Gv1UlUz0wio90fUQfBMN5jSP/6Pmw7aKzZ61AXiuTc cOYIlUM28N2a2Kg8jXO6TsY+tjpm8vX7xfcDMJD6o+eZTs3nUGeSvwRgG 8=; X-IronPort-AV: E=Sophos;i="6.04,259,1695686400"; d="scan'208";a="257600847" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1box-1dm6-7f722725.us-east-1.amazon.com) ([10.25.36.214]) by smtp-border-fw-80006.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 23:54:25 +0000 Received: from smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev (iad7-ws-svc-p70-lb3-vlan2.iad.amazon.com [10.32.235.34]) by email-inbound-relay-iad-1box-1dm6-7f722725.us-east-1.amazon.com (Postfix) with ESMTPS id C25D112026E; Thu, 7 Dec 2023 23:54:23 +0000 (UTC) Received: from EX19MTAUWC002.ant.amazon.com [10.0.21.151:21454] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.10.7:2525] with esmtp (Farcaster) id a231c139-ad19-4ced-a319-ff4bd4500c9d; Thu, 7 Dec 2023 23:54:23 +0000 (UTC) X-Farcaster-Flow-ID: a231c139-ad19-4ced-a319-ff4bd4500c9d Received: from EX19D020UWC004.ant.amazon.com (10.13.138.149) by EX19MTAUWC002.ant.amazon.com (10.250.64.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 7 Dec 2023 23:54:22 +0000 Received: from [0.0.0.0] (10.253.83.51) by EX19D020UWC004.ant.amazon.com (10.13.138.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 7 Dec 2023 23:54:20 +0000 Message-ID: <2a86a7f2-bbf3-43fb-82b9-40d3397d5578@amazon.com> Date: Fri, 8 Dec 2023 00:54:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] initramfs: Expose retained initrd as sysfs file To: Bagas Sanjaya , Linux Kernel Mailing List CC: Linux Documentation , Andrew Morton , Jonathan Corbet , "Greg Kroah-Hartman" , =?UTF-8?Q?Jan_H=2E_Sch=C3=B6nherr?= , James Gowans References: <20231206213323.78233-1-graf@amazon.com> Content-Language: en-US From: Alexander Graf In-Reply-To: X-Originating-IP: [10.253.83.51] X-ClientProxiedBy: EX19D039UWB003.ant.amazon.com (10.13.138.93) To EX19D020UWC004.ant.amazon.com (10.13.138.149) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 15:54:39 -0800 (PST) SGkgQmFnYXMsCgpPbiAwNy4xMi4yMyAxMzozNywgQmFnYXMgU2FuamF5YSB3cm90ZToKPiBPbiBX ZWQsIERlYyAwNiwgMjAyMyBhdCAwOTozMzoyM1BNICswMDAwLCBBbGV4YW5kZXIgR3JhZiB3cm90 ZToKPj4gZGlmZiAtLWdpdCBhL0RvY3VtZW50YXRpb24vQUJJL3Rlc3Rpbmcvc3lzZnMtZmlybXdh cmUtaW5pdHJkIGIvRG9jdW1lbnRhdGlvbi9BQkkvdGVzdGluZy9zeXNmcy1maXJtd2FyZS1pbml0 cmQKPj4gbmV3IGZpbGUgbW9kZSAxMDA2NDQKPj4gaW5kZXggMDAwMDAwMDAwMDAwLi4yMGJmN2Nm NzdhMTkKPj4gLS0tIC9kZXYvbnVsbAo+PiArKysgYi9Eb2N1bWVudGF0aW9uL0FCSS90ZXN0aW5n L3N5c2ZzLWZpcm13YXJlLWluaXRyZAo+PiBAQCAtMCwwICsxLDggQEAKPj4gK1doYXQ6CQkvc3lz L2Zpcm13YXJlL2luaXRyZAo+PiArRGF0ZToJCURlY2VtYmVyIDIwMjMKPj4gK0NvbnRhY3Q6CUFs ZXhhbmRlciBHcmFmIDxncmFmQGFtYXpvbi5jb20+Cj4+ICtEZXNjcmlwdGlvbjoKPj4gKwkJV2hl biB0aGUga2VybmVsIHdhcyBib290ZWQgd2l0aCBhbiBpbml0cmQgYW5kIHRoZQo+PiArCQkicmV0 YWluX2luaXRyZCIgb3B0aW9uIGlzIHNldCBvbiB0aGUga2VybmVsIGNvbW1hbmQKPj4gKwkJbGlu ZSwgL3N5cy9maXJtd2FyZS9pbml0cmQgY29udGFpbnMgdGhlIGNvbnRlbn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