Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7816925rdb; Thu, 4 Jan 2024 08:32:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHK5nUeiiG5KPJ6825iphgGFJ7OZrEZeb8tLcmuIqiZChaJblK393GNgXxs5eOfdg0Ovqv2 X-Received: by 2002:a67:fb59:0:b0:467:95f2:7a82 with SMTP id e25-20020a67fb59000000b0046795f27a82mr583871vsr.19.1704385974139; Thu, 04 Jan 2024 08:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704385974; cv=none; d=google.com; s=arc-20160816; b=dTWlCyoMQeEEo/y8metlqfbsfpE7YqWEoaNekD7TIaVovKVvwPIJZ+XayEKKZGJ4+f qY22tQm6EIgG7M37NYAEspWWtd0Hwl3lNgPRCQfFiKLpeF//rbSMWFmJxVujeIo7jKCZ Ldwg6+uJ40CSejhjz4t7bVr0Sh0nsx6Ydm5bjbn2FjxWUxS0uv8taZQK4MZIpA9wPWRl 3VQiFB/fA/E7e2WjGjsISHzFQWsU7BC7NS5m1GwLXMe1kqMUGm+N3vVosnU2VzTBdMyM Yk72px3UJLZoViUSMDp+BCiJcozanVxIuQLOsp4OFLeRoEIgGdPACAAWdaGRQQYZLS/d oGaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=GZozTrRnGVXzy31zBAY9Io4KyrsVmk5XpdKMFCKbp5Q=; fh=DsiAQeHc2sMFR/Nh0fHnUBRNBqyANO0xMR6m1bDLtfI=; b=LsywME2r3ouRfepVtDC5DGm7cmPm/HpajmKsmIG1Cj0MJC9BDhrPEMup7To5Myk6Un by7B77oYFq74H/A+j7WLdwLXMt9Q0IRujemhe07Yp9KIODz/xSU7XzfBht8LRh+gRRZ5 mGiFM7043T4dajnZLrHZuLj4rpOUxTv33hY29tDmTdcL0I0Pr9vLtPsuWKxt+jljWLyJ botzxHZUoFP51IqkawCaPx6aIUlwr0/tQnKi/dgL5wDWXsHPtO3LRtmvyKuqHgXhtYLD ic3fRhrHwEG4H49C8U2JilgYQvI6QuVWJc6fHTuJNAlxh9AiEF2l3fxyuHbHUJQfoUAz rbxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20230601.gappssmtp.com header.s=20230601 header.b=FGndA+ao; spf=pass (google.com: domain of linux-kernel+bounces-16939-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16939-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dk6-20020a056130260600b007cc5b39b56asi3198099uab.139.2024.01.04.08.32.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 08:32:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16939-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20230601.gappssmtp.com header.s=20230601 header.b=FGndA+ao; spf=pass (google.com: domain of linux-kernel+bounces-16939-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16939-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DCF301C2243A for ; Thu, 4 Jan 2024 16:32:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41A4224B27; Thu, 4 Jan 2024 16:32:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=landley-net.20230601.gappssmtp.com header.i=@landley-net.20230601.gappssmtp.com header.b="FGndA+ao" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60F4224B4F for ; Thu, 4 Jan 2024 16:32:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=landley.net Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=landley.net Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-7ba9c26e14aso20360539f.0 for ; Thu, 04 Jan 2024 08:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20230601.gappssmtp.com; s=20230601; t=1704385946; x=1704990746; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GZozTrRnGVXzy31zBAY9Io4KyrsVmk5XpdKMFCKbp5Q=; b=FGndA+aoe6WDkgaivOKRHwydkzkusJ8CuvZXYuM5KMprCew/0HZKAHsTxfP7JXLYRM FfCvbWbi3xXR5BqM3gdc6WZGBISwuoAip158x+ftCkm64Z9NCbKT6MqCPMSwCzYej+EG 2RzZ0bHZOqOmBudyeTCWgnD/RkDHyGNdZP0Rpwm+TEfDvCs9p+El9xGlUiitquXlNtvy HQ/yTlNnFdo5pRpvoIG1sRBqSFnQRYwc2HwzIwO7KaChSCqaKtxkaoWcaFd0D+LHhccx dWpLZ+W5pLuVlaUShb9dcUYge5KF1U7bxcJhG0lETalKMntPslu3WRryXCRdi5A21oG7 rncQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704385946; x=1704990746; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GZozTrRnGVXzy31zBAY9Io4KyrsVmk5XpdKMFCKbp5Q=; b=BCejj8NBtFB24qh1IPm+UaTNIugIOfChswHA0r0kJXLS3cpDPgcjY21U3aJllzDxYK zH4hf+XOhuHSSzsw7KTn6r0xxPLvhjCPMaMtYj9xMIxZ3GB/y8xRIN7iEpCHGBchT2MM SplBYj4hkunFQalqCmGxpwwhpEGp31yt7o8u9u1K8phU0M9GCApWE7KzPkW+sLkf/zV3 KS9HZtdIEOk2lC4R9xxiIukKzNP5wTT1IS+1cWgNB3Jq9VtCc/PnlCIEJmLGfF8gaP13 AlvwSXuEzOjbHS4ADYGD7WYhke4qShMNgoagPs6b6GYqVTnS51xkIQWIx4mUY44WOKJd h/fw== X-Gm-Message-State: AOJu0YwPIMKoMVZGK6O6iC283BIjpruBLtY8XYQLWEXEg8ka+/kpkzFl 0u9UQq5LUV+75c3kyCvNzILRKW8RCkjeFg== X-Received: by 2002:a6b:e511:0:b0:7ba:7d6a:652c with SMTP id y17-20020a6be511000000b007ba7d6a652cmr543650ioc.3.1704385946492; Thu, 04 Jan 2024 08:32:26 -0800 (PST) Received: from [172.16.32.83] ([198.232.126.202]) by smtp.gmail.com with ESMTPSA id n21-20020a02a915000000b0046df6a4574dsm212304jam.161.2024.01.04.08.32.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jan 2024 08:32:26 -0800 (PST) Message-ID: Date: Thu, 4 Jan 2024 10:38:53 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3] rootfs: Fix support for rootfstype= when root= is given Content-Language: en-US To: Askar Safin Cc: Stefan Berger , gregkh@linuxfoundation.org, initramfs@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, zohar@linux.ibm.com References: <0879141d-462c-7e94-7c87-7a5b5422b8ed@landley.net> From: Rob Landley In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 1/4/24 00:06, Askar Safin wrote: > On Sat, Dec 30, 2023 at 8:01 PM Rob Landley wrote: >> I've been following the initramfs xattr support threads forever: > > Here is my proposal: add to the kernel support for catar ( > https://0pointer.net/blog/casync-a-tool-for-distributing-file-system-images.html > ) in addition to cpio. catar has the following advantages: Didn't we just have a thread about the inadvisability of adding more ways to do the same thing, with each existing codepath still having to be supported forever? And your solution is a link to the website of Lenart Pottering, author and maintainer of systemd. You want to put systemd code into the kernel. > - catar is simple and reproducible. For the same directory tree the > same bit-precise catar file is generated, which is good for > cryptographic signatures. I can trivially reproduce the same cpio each time from the same tree, the trick is just fetching the whole directory and sorting it before processing (to squelch hash-impacted readdir() return order from the filesystem). > As opposed to tar's monstrosity ( > https://www.cyphar.com/blog/post/20190121-ociv2-images-i-tar ) > - catar has support for xattr. Adding xattr support to my toybox cpio implementation is maybe 10 lines of C, I assume the other implementations aren't that much more tangled. The question was always a largely aesthetic issue of file format. Tar is NOT well-defined. I say this as someone who has IMPLEMENTED tar and has a pending TODO item to patch up YET ANOTHER funky corner case du jour somebody hit: https://github.com/landley/toybox/issues/469 Inventing a NEW file format... there are multiple dozens already: zip, arj, lharc, zoo... You could theoretically extract squashfs into initramfs because technically it's an archive format. Good grief, there's an xkcd on that: https://xkcd.com/927/ > It has support for nearly all types of "nearly" Please no. > metainformation Linux offers (32 bit UIDs, nanosecond timestamps, > "disable CoW" flag and various other flags, selinux file labels, file > capabilities, etc). All this metainformation can be disabled if > needed. So, next time we will want to add some new type of > metainformation, there will be no need for lengthy discussions about > how it should be stored. There's no real need NOW. "We did not come to an agreement in email" does not mean "let's add a new unrelated format". It means let's carve out an hour to actually speak to each other, by voice and maybe video, using this thing called the internet. (Without covid we'd have had a BOF at some conference by now.) Rob