Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4335989imw; Tue, 19 Jul 2022 04:53:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t52AX7BXGZG8kDW2AiYK6HDYnpBUXKw9DgdeXhuqKiayH2ZgPMTt6ngK0MFTvnL7oONA2k X-Received: by 2002:a05:6808:1a13:b0:33a:75de:233f with SMTP id bk19-20020a0568081a1300b0033a75de233fmr4917265oib.158.1658231591872; Tue, 19 Jul 2022 04:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658231591; cv=none; d=google.com; s=arc-20160816; b=Mxcgex+jKu8EFGIXfXWaZ3pbPj9Wjsg5AkSvIdEgdiTiIbjCvRcikWHVr1ROkYK6Zp y67AhXfV3ekk9zyu6vq7FeBORl50aH0XdoZPSQeaQI5X+/2X8UsGxomXiIMlMf4c7p1p gIJVqzc3BvCU1hPRVfx+51sIK3btQQKE3Asghs5N42A/Ge0e5OhJNR0aphU5wBaPS/QA KRTxQQrFlZf//sdSORRY5m5/Tn63fsFVuQb7grOLnvCqBPytPP/QQMht4UV6ZHoPE7iO NU3gels5ubnkAtZsAT+pwblDdeeLuyUJCuo9ZY3BLhieclPWnIH45Cf6b7Mduo9J5uhT KPyg== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Va7Ue4HqT06P0u8ZRW43Z0Px0BXsVi2YgJ23VtJAGE4=; b=xPDs1K/y/UBN7OieY/kK00qhTqVkfIsFMslHEbV0xkMjAB4eRnM0TMzDrFdVEmsKm9 wWxrIfSiXoTPdyE8RfiT7SUq3y0M+1dtM+Fwiq6IUKZX7oiZSETQTBg905pZ5nZf6hkw 9zwbZmMA53PHH7FLOvETr9CMROq7o3B+AmHpfK/CmhgqFRZdPDcQTdGpBSSbd7wHq5hZ QINzItZtU1ZzJfQaNs3LiENIulDmjri/6PIIVH+7QD++idXZQdZvVwxJYx7dgzf5l0PH zgJOMj6TZ3IfkrRY6h5bNqWbBZhuEvF3DuG8qSK8J5dh9e7u7Ji6h0MB3ncOYFabGsMD FmHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=gmFEGz70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020aca1b08000000b0033a3e0c583csi12227257oib.105.2022.07.19.04.52.58; Tue, 19 Jul 2022 04:53:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=gmFEGz70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237431AbiGSLoD (ORCPT + 99 others); Tue, 19 Jul 2022 07:44:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237375AbiGSLoA (ORCPT ); Tue, 19 Jul 2022 07:44:00 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7AFF41D0F for ; Tue, 19 Jul 2022 04:43:58 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-10d6ddda695so3377372fac.0 for ; Tue, 19 Jul 2022 04:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Va7Ue4HqT06P0u8ZRW43Z0Px0BXsVi2YgJ23VtJAGE4=; b=gmFEGz70M+E8Ceybb/tf91iagosJh4629EfUTFd5g6M7IY/U61Sb1imjd3ZPEpnUcH tFZ+VtRXyXJ7QQX6xctuIbayj1Lc/steGSVVSvV1TAQ4OCUC12MSz4qN2+j4eg14M67V EtP5cWAAtRhDGBrvIY7TwdwxJTwxjbbQm3DltE5mC5Q1kYv579w4cxu4DN2WTmSPaLn6 jypi4VkBvW2XIIMDp1WDe1+wEYoxHGfqJRzFeoiyBDT/ABKOfLkFnK0jDxOfD3MUAZcO cD8SEDcHGKzsXc1kuCvNGFVTtnjw5FR0nq0aPjBK0FT4VDYg0kANyA0HOQjvQLxMIWFW 17CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Va7Ue4HqT06P0u8ZRW43Z0Px0BXsVi2YgJ23VtJAGE4=; b=QxxY4b4pvkZ7bA+aaeyriZCKy08n6CEgwgXp7Vr+yNjtgDwi8FyoCB+902BHcVbxz/ BcTSVVbUWupOFbR5uh++3EjFQVleg5VqWeib5IWYEztFz52lOkDCc/GvfBxJFTzW4mBV oy1v9MMMOjQxc+vOkGhc9/yOo6bUv1rc/84yXNCOAX7Ga+3wI7g3zOp0aMlbA3OCFV9+ Thw+bN/Q+rDQFk/4pIPaHMqu3PlxPoTE1nEsQ8F03RZhQ0kvUaGyAGnR8xsdZ+5xF5t7 QgyCNdJFi+8hfuHEu1fMjr/E0u5/xABb6qgSp/Iw0YHyOLqKKBES44xEY7p/VmJxgEaZ i8+A== X-Gm-Message-State: AJIora/zWLVQaBquunI1wuiZObvR18COhjEbp62qtjx37z9Dh765Us1X jAdy4sOuV47hZ7mSp8mj1q3DGA== X-Received: by 2002:a05:6870:2216:b0:10c:f8f9:3395 with SMTP id i22-20020a056870221600b0010cf8f93395mr13624058oaf.257.1658231036685; Tue, 19 Jul 2022 04:43:56 -0700 (PDT) Received: from [192.168.86.210] ([136.62.38.22]) by smtp.gmail.com with ESMTPSA id i16-20020a4ad390000000b00435a4c8e3c2sm1415890oos.40.2022.07.19.04.43.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jul 2022 04:43:56 -0700 (PDT) Message-ID: Date: Tue, 19 Jul 2022 06:50:48 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v4 0/3] initramfs: add support for xattrs in the initial ram disk Content-Language: en-US To: Roberto Sassu , Jim Baxter , Eugeniu Rosca Cc: "hpa@zytor.com" , Masahiro Yamada , Arvind Sankar , Mimi Zohar , "viro@zeniv.linux.org.uk" , "linux-security-module@vger.kernel.org" , "linux-integrity@vger.kernel.org" , "initramfs@vger.kernel.org" , "linux-api@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bug-cpio@gnu.org" , "zohar@linux.vnet.ibm.com" , Silviu Vlasceanu , Dmitry Kasatkin , "takondra@cisco.com" , "kamensky@cisco.com" , "arnd@arndb.de" , "james.w.mcmechan@gmail.com" , "linux-kbuild@vger.kernel.org" , Dirk Behme , Eugeniu Rosca References: <33cfb804-6a17-39f0-92b7-01d54e9c452d@huawei.com> <1561909199.3985.33.camel@linux.ibm.com> <45164486-782f-a442-e442-6f56f9299c66@huawei.com> <1561991485.4067.14.camel@linux.ibm.com> <0c17bf9e-9b0b-b067-cf18-24516315b682@huawei.com> <20220609102627.GA3922@lxhi-065> <21b3aeab20554a30b9796b82cc58e55b@huawei.com> <20220610153336.GA8881@lxhi-065> <4bc349a59e4042f7831b1190914851fe@huawei.com> <20220615092712.GA4068@lxhi-065> <032ade35-6eb8-d698-ac44-aa45d46752dd@mentor.com> <737ddf72-05f4-a47e-c901-fec5b1dfa7a6@mentor.com> <8e6a723874644449be99fcebb0905058@huawei.com> From: Rob Landley In-Reply-To: <8e6a723874644449be99fcebb0905058@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 On 7/19/22 01:55, Roberto Sassu wrote: >> Thank you, I have tested that patch but the problem remained. Here is my >> command line, I wonder if there is something wrong. >> >> Kernel command line: rw rootfstype=initramtmpfs root=/dev/ram0 >> initrd=0x500000000 rootwait > > It is just initramtmpfs, without rootfstype=. Whoever wrote that patch really doesn't understand how this stuff works. I can tell from the name. Technically, initramfs is the loader, I.E. "init ramfs". The filesystem instance is called "rootfs" (hence the name in /proc/mounts when the insane special case the kernel added doesn't hide information from people, making all this harder to understand for no obvious reason). ramfs and tmpfs are two different filesystems that COULD be used to implement rootfs. (Last I checked they were the only ram backed filesystems in Linux.) If a system administrator says they're going to install your server's root partition using the "reiserxfs" filesystem, I would not be reassured. > Roberto Rob P.S. Note: there IS another boot option, you can have a pipe backed root filesystem! CONFIG_ROOT_NFS for NFS or CONFIG_CIFS_ROOT for Samba. No, I don't know why the order isn't consistent. P.P.S. If you want to run a command other than /init out of initramfs or initrd, use the rdinit=/run/this option. Note the root= overmount mechanism is completely different code and uses the init=/run/this argument instead, which means nothing to initramfs. Again, specifying root= says we are NOT staying in initramfs.