From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A534C35247 for ; Thu, 6 Feb 2020 01:54:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D965320838 for ; Thu, 6 Feb 2020 01:54:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580954074; bh=jeEPeNjBfo1ArF1b9+A7Ug6ACKy33xwiIBohPfsRLAY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=LWJkOcKCfPevrorw8OdKEG+wGUocwPTduRJqQ+hOckyqOkya5G8gdz/jqvBh8w7xx MMBeRctM2+dxf0g14Cczn1ZqQ7PpUqoTowwmghXgPvLfG5fUZswDJzc29ax5q8UV/h XNFTsB+eFklo7lNpeB07PfJvD02qrkKnnG1Fh0sk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727615AbgBFBye (ORCPT ); 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-Google-Smtp-Source: APXvYqxHSV/Jx6V/ajGP02WdniwHTc/a78EFjyD/aiY26Z26n4zwgD33O5EwfaOS+YXT3IohqmXYYFasoZB2vdvRmS4= 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