From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EB238F48; Wed, 27 Aug 2025 09:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.119 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756288102; cv=none; b=e4tmmV3uGEhwYrMknbAbUF3c3xmAtY4FaIdfr6R+PG9GtSSyleAd8Qa3MzEjw0E0HOYIUIIqSrgruNNMvF5HDbKxWLPwcNcuS4cM25Ktd89U7MsOm89epf1A/Yw7uWM/euR68svxsPqM/AGFLCVI6ivt+U6DUHBBqczNlD6cI7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756288102; c=relaxed/simple; bh=+w2RGnieQf6fF7AYdvNbK7tdl8lTwQYl3t6wdcQBQVc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SNplj3Q33KETfE5xROgqhD48YWQpaJ+s8ZwcfC3BBeop49hsAR/n3A3LM0gZc5NdbxxaOR1BFYKCFtVCYTYE10Imgv0mM6Y+4aqTiYkDd8sRhvsuono3BGsjlbIJiU13f/KJhhvas0PPR3+p5D17E9wtBBcRAC3phiEThztSbyY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=CYbXcZK5; arc=none smtp.client-ip=115.124.30.119 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="CYbXcZK5" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1756288089; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=yI9aY3kCrwJbkAALJF4/YaEOmckx3mMDHOyqA2RjXOY=; b=CYbXcZK5+EOEXc180ee1iIQ6SP0fuw89NwPqXZdSGWKIT0jHHmEgChdxrgREHK+/q2XhCIPdfs6BTxchCxch3siaRXiJZlfUFm0wP5hzvK5TOPn+UsumFND6ciM3xmiS45mSulbD9/jKDNaJSYeOTJ50fo+UP70HbAXhKguuTQU= Received: from 30.221.131.253(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0WmicQLC_1756288088 cluster:ay36) by smtp.aliyun-inc.com; Wed, 27 Aug 2025 17:48:08 +0800 Message-ID: Date: Wed, 27 Aug 2025 17:48:07 +0800 Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] initrd: support erofs as initrd To: Askar Safin Cc: Byron Stanoszek , Christoph Hellwig , gregkh , "julian.stecklina" , linux-fsdevel , linux-kernel , rafael , torvalds , viro , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Christian Brauner References: <20250321050114.GC1831@lst.de> <20250825182713.2469206-1-safinaskar@zohomail.com> <20250826075910.GA22903@lst.de> <6b77eda9-142e-44fa-9986-77ac0ed5382f@linux.alibaba.com> <198ead62fff.fc7d206346787.2754614060206901867@zohomail.com> From: Gao Xiang In-Reply-To: <198ead62fff.fc7d206346787.2754614060206901867@zohomail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2025/8/27 17:22, Askar Safin wrote: > ---- On Tue, 26 Aug 2025 19:32:34 +0400 Gao Xiang wrote --- > > I completely agree with that point. However, since EROFS is a > > block-based filesystem (Thanks to strictly block alignment, meta(data) > > can work efficiently on both block-addressed storage > > devices and byte-addressed memory devices. Also if the fsblock size > > As I said previously, just put your erofs image to initramfs > (or to disk) and then (in your initramfs init) create ramdisk out of it > or loop mount it (both ramdisks and loop devices are block devices). > > This way you will have erofs on top of block device. > > And you will not depend on initrd. (Again: I plan to remove initial ramdisk > support, not ramdisk support per se.) It doesn't work if end users put `init` into erofs image and sign the whole erofs initram images with their certifications. And it doesn't have any relationship with cpio because users need signed image and load from memory. Thanks, Gao Xiang