[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNAREEkuZeXXzGbtemZ=A-YX6Jn6WOtD0azBxaiDiOxLp2w@mail.gmail.com>
Date: Thu, 6 Feb 2020 10:53:44 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Greg Thelen <gthelen@...gle.com>,
Mauro Carvalho Chehab <mchehab+samsung@...nel.org>,
Sam Ravnborg <sam@...nborg.org>
Subject: Re: [PATCH] initramfs: do not show compression mode choice if
INITRAMFS_SOURCE is empty
Hi Linus,
On Tue, Feb 4, 2020 at 2:35 AM Linus Torvalds
<torvalds@...ux-foundation.org> wrote:
>
> On Mon, Feb 3, 2020 at 4:47 PM Masahiro Yamada <masahiroy@...nel.org> 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
Powered by blists - more mailing lists