From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f198.google.com (mail-qt0-f198.google.com [209.85.216.198]) by kanga.kvack.org (Postfix) with ESMTP id 77661800DD for ; Wed, 27 Sep 2017 19:32:32 -0400 (EDT) Received: by mail-qt0-f198.google.com with SMTP id b1so16399368qtc.4 for ; Wed, 27 Sep 2017 16:32:32 -0700 (PDT) Received: from sasl.smtp.pobox.com (pb-smtp1.pobox.com. [64.147.108.70]) by mx.google.com with ESMTPS id c186si122966qka.516.2017.09.27.16.32.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 16:32:30 -0700 (PDT) From: Nicolas Pitre Subject: [PATCH v4 2/5] cramfs: make cramfs_physmem usable as root fs Date: Wed, 27 Sep 2017 19:32:21 -0400 Message-Id: <20170927233224.31676-3-nicolas.pitre@linaro.org> In-Reply-To: <20170927233224.31676-1-nicolas.pitre@linaro.org> References: <20170927233224.31676-1-nicolas.pitre@linaro.org> Sender: owner-linux-mm@kvack.org List-ID: To: Alexander Viro , linux-mm@kvack.org Cc: linux-fsdevel@vger.kernel.org, linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Brandt Signed-off-by: Nicolas Pitre Tested-by: Chris Brandt --- init/do_mounts.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 * -- 2.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org