Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp953851ybv; Wed, 5 Feb 2020 17:55:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyeBUHQo1oqjWfA//jPzM7qxsVDjZPanyJ3eywqvfGrX6EpTvn90pjRvN4XKRz9yMQs9HBw X-Received: by 2002:a05:6830:22cc:: with SMTP id q12mr29318669otc.110.1580954155350; Wed, 05 Feb 2020 17:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580954155; cv=none; d=google.com; s=arc-20160816; b=1IffwotycXASMCCp+T+km3fPMzC57cnZ6QWaK6KNAJ0lzAOdt64xpk4RgGCusTAb+g coOoIlEwdwz5LSGsK3FqJRyqIplyjOdbo676xJbrfxbWrwoloATnKV/75HgSMRDVmBW9 p82AsoMMRvnmACjhSGbfdfzZ75rSsxRPanEFY5V0r2V1Vnzq1kXMSd9EZVHilPs33tP7 CgtBYlkHDpANre0pop97w0KcIShfp0HPV1wjJsPDZUCnhVfnFtePeq0EU4UoTju/4nxU cCEJ6wI95a28UM4oHRKO4tDPS6QoDGGyzPk/BNVX8jz4ewEL7qlr0prc0J5gwfj46i13 iA6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=fYu5qSWDlyPR/anptL+BYhN5tzSdBVO/zoDfzstuN44=; b=P3cpXLJiBP4iA1jRntQDBEekOrPJUncAlQ1wSDQQWujwqpb7MdHRh+G5dZACtKagBE 88nJPf8EMm2pEw1IWsGS0dJXIfCuL08cupPLpgW7cC95zq2qZIJtsZ+VwdGQYRrahHx5 9MVwKbkmcI7Ex/4XZuN4SKHxLw+VA3lxviTo++BxqAEnMnG0iZ4xLuI3GWDhoKC0cxpm IRnidHhVd/NsCSlfNliJH/5DPUzz9xV3Qd4wvAOZsUJ3gGuAgYGjPW738O5EliOs3Xup uO1M9xBl/sy2hhWE2gVe6Im37TDLDsfccKTmzg10u9kYW0h5/C8n9ndh583avJ9oYoBR 51wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=LCJup8AF; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21si999254otd.135.2020.02.05.17.55.40; Wed, 05 Feb 2020 17:55:55 -0800 (PST) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=LCJup8AF; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727588AbgBFBye (ORCPT + 99 others); Wed, 5 Feb 2020 20:54:34 -0500 Received: from conssluserg-03.nifty.com ([210.131.2.82]:43219 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727306AbgBFBye (ORCPT ); Wed, 5 Feb 2020 20:54:34 -0500 Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 0161sLWB013371; Thu, 6 Feb 2020 10:54:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 0161sLWB013371 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1580954062; bh=fYu5qSWDlyPR/anptL+BYhN5tzSdBVO/zoDfzstuN44=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LCJup8AFmkhz46Hw2VBHNYGakgtBiJOJ9C6xSkTww/uotGVBpuRZX6SB/Vv+3wEbF FWqGdZICSpwK9VFqSe6CjHV1fr9VEQgng/STdoGkhyn8NSB1L4lY71yuuAHKiBLNDI EwqpQQ8Z3CqmrQz4ZUdmwnEuzwopa7j5GV1aM2IGln8kn0dm/TnIMSkxFNTsHl14Yq Mn6eOV0KPqZmOMCtqf+rGFt8F2ByLkhTf1s8c1utmdA3lkYOsQb6Dn/J85wZZ7kDxF oFKY8TRFCBaNseYhvMX3tYEJpxkqtr6TFsFYrRQRU/uC8V1l8FVKGFYljGne6JDf3J 0LOB2wiuRojtQ== X-Nifty-SrcIP: [209.85.221.172] Received: by mail-vk1-f172.google.com with SMTP id b69so1178176vke.9; Wed, 05 Feb 2020 17:54:22 -0800 (PST) X-Gm-Message-State: APjAAAUDLeihNVPU3WWZ318gaCRVg4dah8hhw/FXrbDMLsEaDKDXxNc0 rOQpjYvWsM8EEiUpHNUwHMQzDCxhSfiW3UH9Jms= X-Received: by 2002:a1f:bfc2:: with SMTP id p185mr542468vkf.73.1580954061054; Wed, 05 Feb 2020 17:54:21 -0800 (PST) MIME-Version: 1.0 References: <20200203164708.17478-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Thu, 6 Feb 2020 10:53:44 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] initramfs: do not show compression mode choice if INITRAMFS_SOURCE is empty To: Linus Torvalds Cc: Linux Kbuild mailing list , Geert Uytterhoeven , Linux Kernel Mailing List , Andrew Morton , Greg Thelen , Mauro Carvalho Chehab , Sam Ravnborg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On Tue, Feb 4, 2020 at 2:35 AM Linus Torvalds wrote: > > On Mon, Feb 3, 2020 at 4:47 PM Masahiro Yamada wrote: > > > > This commit hides the Kconfig choice in that case. The default cpio > > is embedded without compression, which was the original behavior. > > Btw, is there any way to figure out automatically what the initrd > compression is (for the external case)? > > Because I think it would be lovely to be able to have sane defaults > for the CONFIG_RD_xyz things. > > I'm assuming the answer is "no", simply because it comes from distro > installs, but I thought I'd check. I think the answer is no. For external initrd, it is up to distros, and we have no way to know the compression type beforehand. We know it after booting. init/initramfs.c has the following line: pr_debug("Detected %s compressed data\n", compress_name); -- Best Regards Masahiro Yamada