Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp377948imd; Sat, 3 Nov 2018 02:12:31 -0700 (PDT) X-Google-Smtp-Source: AJdET5cc8UyOStxDDSIzS1pgPKxbFlaygoP5zSzoNk+oIZInTPqmFAPLFhgLIxrjPw1rBghlOFvp X-Received: by 2002:a17:902:24e7:: with SMTP id l36-v6mr14586081plg.234.1541236351550; Sat, 03 Nov 2018 02:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541236351; cv=none; d=google.com; s=arc-20160816; b=j8pulQ+nvKLAT/Uc+Tm3v5ePP9bjWLvULHBl1oETb/dGaQRktQNHEIoncgygiQulTb wmnTd1sVWsAXPLIW3XXtyi9Ff5Mbiyvf/d7dFYC3WGbyFuByvgNWIKXZYK7BaqrMcNzU qGmw13QF4YqgsEJQ/5JjBp31gVkeWjd3luN/rNbawXaBuxIM4wxF2uTwWoUnwEX6ymW0 eEnM7sntlL87q6el0lEUPPcehBFtGe/HeBRlOhr93pvTED3+VJ1aVtYJv1CuXPq5iLA2 Jvj9Pe5N56g//0/9JqE/FAUNavcJWGPMIIWeYOZMwADhTg2OscRrmxO/fEXqCcgq9u6Z b9Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=X8bfO9abjF1h4DNe610qyzuq0kgugXkEqkdqCgJBPPc=; b=Z6QC6r7Gk7zifEKEx+V7hwQ/tb++vHp/Wns6Ojy2YriXqldDOZEj9SLr6TsdXaTJPQ Ew7j/WlhLEWDXCdpovzumvzZBc/e/SeMRcffLhioy3QGplL9WvqLcFEzESShNEs626S8 U5vsjwFftdOndtr+pqAjo/46TFn4pcdiSd0A2H6ROxhUTMGN63L8QT8ztwOREJCDsO01 TiUMPAfYh0zeSAEP/X9BXwN7NZoutxJambPE+EWbw8v7kUARrwQ/M+DRB7fr/sVFX/K2 wiQkaMgrwCqoA8ombVgNh3oFBHgVy1Mw5useMaQP/ka/UdqsyZqMZbDyKnc4u7Jj25M+ nbuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7-v6si35936458pgn.108.2018.11.03.02.12.16; Sat, 03 Nov 2018 02:12:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727672AbeKCSUv (ORCPT + 99 others); Sat, 3 Nov 2018 14:20:51 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:53002 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbeKCSUv (ORCPT ); Sat, 3 Nov 2018 14:20:51 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id E22A960A04B3; Sat, 3 Nov 2018 10:10:09 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id WBwD1CdxLQlt; Sat, 3 Nov 2018 10:10:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id A56FD609F82F; Sat, 3 Nov 2018 10:10:09 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tx5Gpe2Aac2O; Sat, 3 Nov 2018 10:10:09 +0100 (CET) Received: from blindfold.localnet (213-47-184-186.cable.dynamic.surfer.at [213.47.184.186]) by lithops.sigma-star.at (Postfix) with ESMTPSA id 2B103606C48C; Sat, 3 Nov 2018 10:10:09 +0100 (CET) From: Richard Weinberger To: Helen Koike , keescook@chromium.org Cc: dm-devel@redhat.com, agk@redhat.com, snitzer@redhat.com, linux-kernel@vger.kernel.org, enric.balletbo@collabora.com, wad@chromium.org, linux-doc@vger.kernel.org, linux-lvm@redhat.com, kernel@collabora.com Subject: Re: [PATCH v10 0/2] dm: boot a mapped device without an initramfs Date: Sat, 03 Nov 2018 10:10:08 +0100 Message-ID: <3624012.MiIzIq7dko@blindfold> In-Reply-To: <20181103035341.16893-1-helen.koike@collabora.com> References: <20181103035341.16893-1-helen.koike@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Helen, Am Samstag, 3. November 2018, 04:53:39 CET schrieb Helen Koike: > As mentioned in the discussion from the previous version of this patch, Android > and Chrome OS do not use initramfs mostly due to boot time and size liability. Do you have numbers on that? I understand that using something like dracut with systemd inside is not what you want from a boot time point of view. But having an initramfs embedded into the kernel image which contains only a single static linked binary can be *very* small and fast. If you invest a little more time, you don't even need a libc, just fire up some syscalls to setup your dm. I use this technique regularly on deeply embedded systems to setup non-trivial UBIFS/crypto stuff. Want I'm trying to say, before adding ad-hoc a feature to the kernel, we should be very sure that there is no other way to solve this in a sane manner. We have initramfs support for reasons. Thanks, //richard