From patchwork Wed Aug 16 17:35:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 110270 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1083950qge; Wed, 16 Aug 2017 10:36:11 -0700 (PDT) X-Received: by 10.84.229.78 with SMTP id d14mr2694533pln.470.1502904971106; Wed, 16 Aug 2017 10:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502904971; cv=none; d=google.com; s=arc-20160816; b=JBOJUdmNFQvZ2Io6jE83hd8RXHzDqBRM6g/g/rIFd5ndsGOKPZxjOdXEweA6lYlg0m NSEC+VAN1Cgb5BLYF0j1GFF2dczf4o2pqw2pl3lsNkhjOrFZP+C8pHfFZYaB114E42Zs fMlw9T5l7T0EDsnbb5RZWQ3y6U+YcVPz3JsRb4oPf1FpBEFL/3SvjzeU+jq/il4Y0HKb +HTjriNxPZ3W3Ij7tqRXdgzcpAbYl2O5OUVRA6hUSCVIvmU2UBjRpencoW+0aLdhro/s SEA7+yOjNhbynQN3FnAfRKVR3rvtfYpl9J5RHA5w+8B4zmucaQNmoFg6oBYKsuLyuKM1 shOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ufl6LZaSbzLJY5HwQbqPv5BsYzR7RSuu/tOE2Y/KvRg=; b=f+bUWz6CrAwVHbL0qKQ7PDQ+IRIlajDNymRRsLNu+ah56VkDTg5L99+2ewqJi4NY6l VlGCigkctCBi9j4kGShhIgCg3rk+qPRCKU+333PXmzu+2naG3noNgpoeuVWRgJOfE2u4 xqgnJ7HLsgPfgW6A7qg+SXOyKlQBO/EdQ53fstoHca3A+ZKh77NlBXBFC/xE+wMeKRsV abrjaQvnDbFwHJ24eCoi3hvypQ7X9jke2uu6W9PpyIoehEI8UToMmGp2IFkdyrr055xl VwYsukd2SD9kyVkeQdmaajjiySq/9uC5+KgqgwiAUnc8wYQQhnY2A+bC/LOB0C2EashJ PPXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=J+FSJHxT; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t76si760453pgc.63.2017.08.16.10.36.10; Wed, 16 Aug 2017 10:36:11 -0700 (PDT) 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=@pobox.com header.s=sasl header.b=J+FSJHxT; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752576AbdHPRgI (ORCPT + 26 others); Wed, 16 Aug 2017 13:36:08 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:51871 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752477AbdHPRgF (ORCPT ); Wed, 16 Aug 2017 13:36:05 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 65945A2AB7; Wed, 16 Aug 2017 13:35:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references; s=sasl; bh=FRW4 h7LOGDi0rkk6CzRZnQnfVq4=; b=J+FSJHxTz9+bVarkO8RZJg6ljWmuw1MTtQNi jyhknqXvVjTMQU9PCwI8JBSdvH+CCQoKVWpNVPCRHApfwOpvB4TLwRjw8UB6SK5L 3N6SpweJdf5gL5v/SJ3YHF61kz5rq/38rzSWc9YMzMUwpEVSkqu8SQY2S9wNaG2H d5hsJsQ= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 57F57A2AB6; Wed, 16 Aug 2017 13:35:57 -0400 (EDT) Received: from yoda.home (unknown [70.80.200.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id C25E3A2AB3; Wed, 16 Aug 2017 13:35:56 -0400 (EDT) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 1DA592DA055A; Wed, 16 Aug 2017 13:35:56 -0400 (EDT) From: Nicolas Pitre To: Alexander Viro Cc: linux-fsdevel@vger.kernel.org, linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Brandt Subject: [PATCH v2 2/5] cramfs: make cramfs_physmem usable as root fs Date: Wed, 16 Aug 2017 13:35:33 -0400 Message-Id: <20170816173536.1879-3-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170816173536.1879-1-nicolas.pitre@linaro.org> References: <20170816173536.1879-1-nicolas.pitre@linaro.org> X-Pobox-Relay-ID: 5C532F3E-82A9-11E7-84BE-9D2B0D78B957-78420484!pb-smtp2.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Nicolas Pitre --- init/do_mounts.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.9.5 diff --git a/init/do_mounts.c b/init/do_mounts.c index c2de5104aa..43b5817f60 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -556,6 +556,14 @@ void __init prepare_namespace(void) ssleep(root_delay); } + if (IS_ENABLED(CONFIG_CRAMFS_PHYSMEM) && root_fs_names && + !strcmp(root_fs_names, "cramfs_physmem")) { + int err = do_mount_root("cramfs", "cramfs_physmem", + root_mountflags, root_mount_data); + if (!err) + goto out; + } + /* * wait for the known devices to complete their probing *