Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2751014rdb; Fri, 8 Dec 2023 19:45:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvwfGl5HvqnF9Yc78VKO5WZMUyjuw7eD5FFTWo/CC1yOtzMA8ih26oTD9o3FkPvGSbpsl1 X-Received: by 2002:a17:902:dacd:b0:1d0:94f2:2ad7 with SMTP id q13-20020a170902dacd00b001d094f22ad7mr1003907plx.68.1702093558012; Fri, 08 Dec 2023 19:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702093557; cv=none; d=google.com; s=arc-20160816; b=G9BIlK67RPR8Krp/J0KhI/1U9oaZBzdH5zc9GIjj/TvQ0BuoiMWay22jGRIIlMILMV 69smjg5hoBfpaQ8wG94Sl4Ix1T55/Z+BdJcqJnp5iOf16YqY1qkCtZ/XrQB005Uq/mNr j1P7i6h7CUi06WKBFLpOusQpNUrpLVYlrDQ8hkAC6XacuP2268br5bLLSl+MwLS13KAX TAb6vVcOA/2O2gG1PIjUloEmbIso1GIwyTjyoXIcBccyswSNHBODqtTzxgUG1HV4gBjR IivxmSIDU5vyYCkgY031Z83hKfu4olNWPGx866IsJ/3GGR834A49ZPLLZFC/7gpihX8c UsAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CCZE7SzFJ+E9PoYCMO1v9KaDTbP1QB2IF1PQTRe+p5A=; fh=iCewsB3Dh0HACJckohJq0roaEh7q1gKqYuzOh/I78QU=; b=QSfuCkat+4vICYjCZwOQ4S3cZigze1VwC2X5oZ5se5TxFPv5yf2ozRLZjTvXfDBaTJ ml2UTkN801ihWpBXBFA+kurNk153HfjLF+OTq4Z8ynUtUk2E7fjDBSYL1OtGQSS95hu0 212ggwGlqYLJCZXSRDfIAE1iXKjDVDYXyXCkqRnaOL9Vx0LHr+6TFgSbusbudHqiG/pl 32KIoba6EW2ocNwVtEQGMIh7ONY338qcCXNeaSdGYfp3bgtHPZd5N06ZEOIUeTZrtKWn cgt3mQ4YPFtns7gDqnkxJ1k/jDcqOjugfH0FWpCf1DQtAx30p+yZjZ0dabABTeizv9fI Yzvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mNcnR6xq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id gt9-20020a17090af2c900b00286bf822f9bsi2620302pjb.179.2023.12.08.19.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 19:45:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mNcnR6xq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4B981808DD84; Fri, 8 Dec 2023 19:45:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234246AbjLIDop (ORCPT + 99 others); Fri, 8 Dec 2023 22:44:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjLIDoo (ORCPT ); Fri, 8 Dec 2023 22:44:44 -0500 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1799410E6; Fri, 8 Dec 2023 19:44:51 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-5c21e185df5so2334731a12.1; Fri, 08 Dec 2023 19:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702093490; x=1702698290; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=CCZE7SzFJ+E9PoYCMO1v9KaDTbP1QB2IF1PQTRe+p5A=; b=mNcnR6xqhcCVaDpOJSqpr1gv9Dsd+HXhFEjwA1F1OU/n/k4GXn4cJrtygejYlsNZ7i lLBi+2mlEQkzSA3LsqxQGezXXifCrc/85Wj6+sjqZ+FbaP9e2M8QzDsFVU8NoqquVfsX n7j8D+4t/pHJaBMIvMC7kmTMIZbAn4MZALE9ZVFwJt6DSbihy3pT2Yyw3cgfP33nxOpB kW+CE33Ygtqg3r92kCmJvjlvl7RSN8r4fZMD/IX0F0Is4YlrLHCp3hSfss8RlSCw0iMf lXu1i8K7Q0QlxXXyUCdXAqo5ppZmWiXcloVuJC0aIMgASKo0hCknUHmKWpCbjpFp4EHD LnrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702093490; x=1702698290; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CCZE7SzFJ+E9PoYCMO1v9KaDTbP1QB2IF1PQTRe+p5A=; b=Ld4jBhqS/1wjv3IAHUIJSkdTgX9XbN8y0qI3HUOtIlo9xj0srGVqfyfzc2OL9uGO6C 4jFDGnCGFGUkx/lelJdjBhmmE7jUp6piJb0ecJlKF5MZXXCSgJw8p2Caei76GXJU/Dz8 NdAz+kwa82gQQ2W8MfbEvZFzQkOFY1M/9Oq5DU1yt+ZbfOx7q84IMhTV7Nwot6axNWVk zfPwdBowl+sFad+HGRqE+rS+04q/blrLdFP37I13elJV7YilKbAqHzNcXLtLS3373JYo f0xIDb4Oop+Ud8ruTK54+azbCxvsio8u74ExHCTKGGSWfp1/PFZBRePMXz3Op4PU/uEe NIgg== X-Gm-Message-State: AOJu0YysWrzFkkx9pzIHaD+aPrLBD9X8rKYVfe6fIGJAKAU5lGi8Ku16 jFAHBJ0gsvwkPksd6gqyl0o= X-Received: by 2002:a05:6a21:328b:b0:18c:ad4d:3469 with SMTP id yt11-20020a056a21328b00b0018cad4d3469mr1451440pzb.53.1702093490469; Fri, 08 Dec 2023 19:44:50 -0800 (PST) Received: from archie.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id t14-20020a63eb0e000000b005ac384b71cbsm2291065pgh.60.2023.12.08.19.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 19:44:49 -0800 (PST) Received: by archie.me (Postfix, from userid 1000) id 9332E10211A57; Sat, 9 Dec 2023 10:44:45 +0700 (WIB) Date: Sat, 9 Dec 2023 10:44:45 +0700 From: Bagas Sanjaya To: Alexander Graf , Linux Kernel Mailing List Cc: Linux Documentation , Andrew Morton , Jonathan Corbet , Greg Kroah-Hartman , Jan =?utf-8?Q?H=2E_Sch=C3=B6nherr?= , James Gowans Subject: Re: [PATCH v2] initramfs: Expose retained initrd as sysfs file Message-ID: References: <20231206213323.78233-1-graf@amazon.com> <2a86a7f2-bbf3-43fb-82b9-40d3397d5578@amazon.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kzQn8eZ18UIMUIWi" Content-Disposition: inline In-Reply-To: <2a86a7f2-bbf3-43fb-82b9-40d3397d5578@amazon.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Fri, 08 Dec 2023 19:45:25 -0800 (PST) --kzQn8eZ18UIMUIWi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 08, 2023 at 12:54:18AM +0100, Alexander Graf wrote: > Hi Bagas, >=20 > On 07.12.23 13:37, Bagas Sanjaya wrote: > > On my Arch Linux system, /sys/firmware/initrd is not same as initramfs = image > > from /boot partition that is uncompressed. `ls -l` listing shows > > (with /tmp/initramfs-boot is unzstd'ed initramfs of the same kernel boo= ted): > >=20 > > ``` > > -r--r----- 1 root root 22967535 Dec 7 19:32 /sys/firmware/initrd > > -rw------- 1 root root 40960000 Dec 7 19:26 /tmp/initramfs-boot > > ``` > >=20 > > And thus, `cpio -i -v` listing differs. While in uncompressed initramfs, > > I got expected initramfs contents (early userpace for booting), doing t= he same > > to /sys/firmware/initrd only shows Intel microcode. > >=20 > > Regardless, exposing initramfs as advertised in the patch description w= orks for > > me. >=20 >=20 > Thanks a bunch for testing the patch! >=20 > The reason you're seeing microcode is that something in your boot chain > (grub maybe? sd-boot?) sends multiple initrd blobs to Linux: One that > contains microcode and another that contains the real initrd. Linux > continues extracting past the first cpio archive. >=20 Yes, I use grub on my setup. Ciao! --=20 An old man doll... just what I always wanted! - Clara --kzQn8eZ18UIMUIWi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZXPiqAAKCRD2uYlJVVFO oynsAQC7FChpsaleO80bxpjwR1pE+W8E2XDPGkJkN90E2ibLBQD8CfRWfCLhx27V +pMyktVR4EzB5FZROQG5/iNQsrGdjAg= =CASx -----END PGP SIGNATURE----- --kzQn8eZ18UIMUIWi--