Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2616456pxu; Mon, 7 Dec 2020 10:54:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXP2pgZPSSBzKUfi/VdpDAgDXAb/8vtKwvfw/XyEXxh7bqOkAWwE92Vi7H/2mHHhB88TdZ X-Received: by 2002:a50:fb1a:: with SMTP id d26mr21469076edq.101.1607367263422; Mon, 07 Dec 2020 10:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607367263; cv=none; d=google.com; s=arc-20160816; b=O7qUPldeOb16C2CPXtZiuLR0KWgD8yCsGchYkh1IaYy25AyNfYGb40RbBfROnWxHXc 7bKgMrL1mKtRVLmA0T4ynaokKfGhWrO/ppmWHsf3LPM/ja5uEW9aKlQe9PiJqpob1E0G c6UCS/dJhaZklcDbgOv9WU6p1wlUfY2aWdWbDBqfoZeSmdnFhtyhqjO7rSeOSkkFLTSn UMcaINbN/gcg1Hvc3heyIuGptMhMhQONE+e+eoGci6hpb3BK6O5gwmyCxh7nz/wk3WN+ SwpgEJbDIg+VG8c1Y6eW8ud369Ta+Cu2b7b5JhTWSrWsys4tOEJf4JdC+2dKeiCsDT7a 6Q5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=+HUK5KyDjgCAXO4lpplCtBN5pV22HLCAWYMsVxdaBHk=; b=cc0PoTPy0LCDEYUUzlkJuC1OCAWp8SrsO0itJr9D5NDb1b4Mk+9dzCBAMVESluIyXx 55D9BU9LA/c4pPQRYFf8jksXZ7jusT+uyvDJl3kDbnS7bTBdJemDJmIjGDoZJ7pst14A mpO4qwfcbIsxJvH8A1sUAgf9h0W4eO39vivgQMgkWguD4s6PbE3nITlY06AcVMxxF2gR 8XuN7QnJ+A9bUKDMLMKDCVe9YWS2y2cCjdNhLSaLnQyQ4g/vCHHP16YW2iUcrRXsgafE Jf/y3rQaUpnO/S/zbfBRdtuCfhOepdJg/Gu9MgtongCNdNaWfR/I61xZ/oOkJUbdJn9W lr4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=e9ppLnx4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si8901842edc.537.2020.12.07.10.54.00; Mon, 07 Dec 2020 10:54:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=e9ppLnx4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726063AbgLGSuC (ORCPT + 99 others); Mon, 7 Dec 2020 13:50:02 -0500 Received: from sonic309-21.consmr.mail.gq1.yahoo.com ([98.137.65.147]:44702 "EHLO sonic309-21.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725915AbgLGSuC (ORCPT ); Mon, 7 Dec 2020 13:50:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1607366924; bh=+HUK5KyDjgCAXO4lpplCtBN5pV22HLCAWYMsVxdaBHk=; h=From:To:Subject:Date:References:From:Subject; b=e9ppLnx4oipZwW+1aHhqpRQSecrMiKgEHv3t7EUi2pQ65OmEAgHQd8GiM1EMMi2aKqORsTP81MKhAtrihnOUYOBE4uDKz1Wf2Gs7FLpjEBD5Tpwt3Nx5CqmpcvjkTMiW+nN3lKnHmACfjVznJKOA22ZmyMtumX56fW9Wda7AYJEDqdxglLptjl5XAyd8C77aJ1W0/2i8shr76CydmvwmLl9fvxvA8lZSLuS5YMRsUM1ADHbeZNyBxIOm50NwLfYajSTYDoJi2lBG+ak/W9OCsEaaiuiK0L6+2vx/GBigT4QOLXdAoQL1OZJfz12m3AzktbWM5NqoRsqT/ZKTHtnJyw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1607366924; bh=SoyKBF4NEGDq9UI8Y6JtkIwCr6Raw9XpHK/iN0iLEYN=; h=From:To:Subject:Date:From:Subject; b=a1VU+ES3bA7MKUC+fu5Hq/dIIJrbYWqi223CYagiERpk4rWDksTxfmqxLWMsP7MO6aS6ERTWD+f6VAiyulbCrQc5W7fLDZAG5GSU7NyocDaDC2zlbfMUk/4GpA0s0Yr7MMwyeWadBYToAJAx3pRInZsZokCj5HQH11Umt/4qzNYvApd/3q95Eq4sZIliJEuymCul/X6KZBapmHDbysGdR0pSgykB/zn/lcNNFIfwI0feh12ph3rN83K071einsGmjXeFscwe5Sw+ioF0qxuydGzhxOlRiiGKsH4ZeUTehATWFuTxbjy+6uAx6+J09iWmXKxtm8IMobyOPHQiw807Hg== X-YMail-OSG: 1QAjGKEVM1knIbp0drmWAdyACln4yo97atP5uOzRhnna2awOzHh46dlqpVct6fr bSlpbFAi_h9yqyERTbakVVgVZ3gI6sWBhoZ2Stu7C3D0pJECgDUkfMC9pxVLAJosgdPKrYM.Q_lg CAQZCKQ_QHjimquUAZSAO0vrrab8SVvzN0jYccsi5ldUnWNZYgVsJ_aXJIM8VFzEU4sDEYa_kLQk oxGD0Lg9iwnYvKLmATXIA0QhQQ4XWAFMJhYGxGA7dRyLVnl0D3IQCeK22IYdZN96Sv82olcO7BC1 iSXPobCjbxvYNTz..Fg2TQN51pEQGKw9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q0VKjC3KDfryTfS0KN8aHtf 6y7hWZ3fPkoCjfFlr_vEzRdgBTMXC8gYR7j8QAS6X4cTeMZice2N.uF6UNOZ3ITRuXNJyFb5LPVI V5nA4d1dzHx6m5Q-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Mon, 7 Dec 2020 18:48:44 +0000 Received: by smtp406.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e74d225f1b631ac1ef6bdaff31506e61; Mon, 07 Dec 2020 18:48:39 +0000 (UTC) From: "Alex Xu (Hello71)" To: "Alex Xu (Hello71)" , Dominik Brodowski , Song Liu , "Theodore Ts'o" , Jens Axboe , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] init: fall back on mounting raw root Date: Mon, 7 Dec 2020 13:48:33 -0500 Message-Id: <20201207184835.63538-1-alex_y_xu@yahoo.ca> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit References: <20201207184835.63538-1-alex_y_xu.ref@yahoo.ca> Content-Length: 721 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 9p/virtio, virtiofs, and others can be mounted with no block device or userspace helpers. Signed-off-by: Alex Xu (Hello71) --- init/do_mounts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index b5f9604d0c98..8aa38ec0bfec 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -568,7 +568,7 @@ void __init mount_root(void) } #endif #ifdef CONFIG_BLOCK - { + if (ROOT_DEV != 0) { int err = create_dev("/dev/root", ROOT_DEV); if (err < 0) @@ -576,6 +576,7 @@ void __init mount_root(void) mount_block_root("/dev/root", root_mountflags); } #endif + mount_block_root(saved_root_name, root_mountflags); } /* -- 2.29.2