Received: by 10.223.176.5 with SMTP id f5csp2872645wra; Thu, 1 Feb 2018 07:21:31 -0800 (PST) X-Google-Smtp-Source: AH8x225wKXsF6TMcUZC8YKeyoQs2hI4l19We48lxbTACNPllERCP2/S1W8a+b3Nx3cvTGKTJL8ln X-Received: by 2002:a17:902:8691:: with SMTP id g17-v6mr32663055plo.446.1517498491361; Thu, 01 Feb 2018 07:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517498491; cv=none; d=google.com; s=arc-20160816; b=A0FbxkqXgzlFZvH/3s4ykTvym8y3ZX3f1CWv2lFNw+n4J0yBNMeBoIDDhci/8ThFoX EgjZk86+5wZmMpq/W4vT99b2CJQ+2sGNmjilbygcqhj9GQSzxJrOEk19N//9TeGkALOf rcJED0BMugY4z6feAMGi9BDmdIlXrkDyQfSTXUAO5+e4JNoTCTCqv/SJQSYDl5Ue7JYi qYi+5gpeNYZHcJHvqNmj/EHKlpdGkHHHm7NfrsFie3MxqOwGc7EMR4oKByh6ihBmgLyt 1HKAuq3g6aoO22FDUtzaFDkTXzej3TEF7DhSn0XRfrFHCGNB9ezrh6vPERvuNcYaP2XX iKCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=2w1nOcy6Ju6Um/TmjufEdPg1TIXTYOU+rv4g044PIzw=; b=rbL+5Te0O5UVJBoA4FAbvfDzo3L3N1jeXUo0FZXKnVAEVqgJ7QLPA1Zuo8WJP5ALd4 KDlqnY72phXlbseg+q4ecHKpJiAZNdgK6kMAyGn/avs7RN5CEkRXOyeLbWP2jmIhrhP1 UfgofRAN8Cu1h7MDYWkd1/Wtz/TyRZ1nQy2vGC7gojaq0e7fzqKRGcr74GRMl8kjhHfV 8Js3jkgK2VK7vApjwK/41ewdJ9KjtnafSfpaaJcPm++/kDxUZiLzlCgy3DBgWKmPNaJ8 i47kS4Arsu1lCXXqejn60mqdoeAUQJ+++YKz8nFMEuNlO+1ope7tlaNpsvM+5kA72Sew do5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=HBiGi6Kv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o17si1663555pge.371.2018.02.01.07.21.15; Thu, 01 Feb 2018 07:21:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=HBiGi6Kv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752256AbeBAPUf (ORCPT + 99 others); Thu, 1 Feb 2018 10:20:35 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:46167 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751760AbeBAPUb (ORCPT ); Thu, 1 Feb 2018 10:20:31 -0500 Received: by mail-io0-f196.google.com with SMTP id f34so19543764ioi.13 for ; Thu, 01 Feb 2018 07:20:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2w1nOcy6Ju6Um/TmjufEdPg1TIXTYOU+rv4g044PIzw=; b=HBiGi6Kvz5d1x+Ij60RqC/Us3dEHn74Ki/kQUL5GMxHYkS7VUMKV2czcnwMwRuEvhx cQi68+ajl6TcT/3oPvVMBSxsh8gx0/rELSqduMxl/xXrSIuy4dfkdpcS/dqVSCIlbzKE 8yxFHoAcIJiqk/Qhppu4ukr/9XU1/jUIq60Xc894XxlKhqO925mVUabYbEIEIGK9g0v5 qB8gwlaJvZg0N+U057rxZknrq6QPQAPDh1yNMdFhxNnHkLoXrqF2c8huiWD6OlHLKMAa T00eJwBeHMu9y1dGSgisEOURoGrRQufUqWa70xNkgiNFgC90ORKUV6nnVXcI95LaPAPh ehDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2w1nOcy6Ju6Um/TmjufEdPg1TIXTYOU+rv4g044PIzw=; b=hDFlu2F9pERSgnRBEkDESfbz1oRLzyF2Mbhd40SoVCQAO+Jm/uYf5Bi4aREoMxI4IJ kVUS3VeGuw+ojyjmXFG0atB1jh9zxNwwMPsmdyuMjnmAdb3zRhJvW8Sr+xHEF15DKkDp 0QPhHgEaVsxWqSR61iZIh3E9xaMhO6UJZGZIQrc9tlHJ5eWpIIWAE1DrBcA3g0g+F2AS KZ+EdqPxqrx74irppRXm7Yaa/F+jblI2tLxOpM5Vr7GRV/K/zpT3rkrJT2SnWi/E1jvW 9oOYMqTWusG/lODuehgOeedNhqEcucLl0BBoDh3VtF4PE/craAWMIy1c7xtsjGZ2v+Wf ZQcg== X-Gm-Message-State: AKwxyteHnW0sqDDXy9GCtmmG6nxW7CBgRwi1rWW3y0i43644OJQN9ClS fQTHGivjM23OVml6jerc0cbOuFwBr8o= X-Received: by 10.107.59.87 with SMTP id i84mr4103272ioa.99.1517498431017; Thu, 01 Feb 2018 07:20:31 -0800 (PST) Received: from [192.168.42.24] ([172.58.139.23]) by smtp.googlemail.com with ESMTPSA id m71sm9516449iom.70.2018.02.01.07.20.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 07:20:30 -0800 (PST) Subject: Re: [RFC PATCH] rootfs: force mounting rootfs as tmpfs To: Mimi Zohar , Arvind Sankar Cc: initramfs , Taras Kondratiuk , Victor Kamensky , linux-security-module , Al Viro , linux-kernel References: <1517348777.3469.5.camel@linux.vnet.ibm.com> <1814af5c-170d-39c0-58fd-02eb7216e008@landley.net> <1517436423.3469.237.camel@linux.vnet.ibm.com> <20180201020331.GA3774@rani.riverdale> <1517458921.3329.2.camel@linux.vnet.ibm.com> From: Rob Landley Message-ID: Date: Thu, 1 Feb 2018 09:20:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1517458921.3329.2.camel@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/31/2018 10:22 PM, Mimi Zohar wrote: > On Wed, 2018-01-31 at 21:03 -0500, Arvind Sankar wrote: >> On Wed, Jan 31, 2018 at 05:48:20PM -0600, Rob Landley wrote: >>> On 01/31/2018 04:07 PM, Mimi Zohar wrote: >>>> On Wed, 2018-01-31 at 13:32 -0600, Rob Landley wrote:>> (The old "I configured in tmpfs and am using rootfs but I want that >>> rootfs >>>>> to be ramfs, not tmpfs" code doesn't seem to be a real-world concern, does >>>>> it?) >>>> >>>> I must be missing something.  Which systems don't specify "root=" on >>>> the boot command line. >>> >>> Any system using initrd or initramfs? >>> >> >> Don't a lot of initramfs setups use root= to tell the initramfs which >> actual root file system to switch to after early boot? You mean the option that _isn't_ passed through as an environment variable (the way ROOT= would be) so you have to parse /proc/cmdline to to see if it was passed in? If you really, really, really, really, really want to double down on the "no, this is the button, it doesn't do what I thought but I will MAKE it work" obsession, sure. > With your patch and specifying "root=tmpfs", dracut is complaining: > > dracut: FATAL: Don't know how to handle 'root=tmpfs' > dracut: refusing to continue [googles]... I do not understand why this package exists. If you're switching to another root filesystem, using a tool that wikipedia[citation needed] says has no purpose but to switch to another root filesystem, (so let's reproduce the kernel infrastructure in userspace while leaving it the kernel too)... why do you need initramfs to be tmpfs? You're using it for half a second, then discarding it, what's the point of it being tmpfs? Sigh. If people are ok with having rootfs just be tmpfs whenever tmpfs is configured in, even when you're then going to overmount it with something else like you're doing, let's just _remove_ the test. If it can be tmpfs, have it be tmpfs. Rob