Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #75071

Bug#1009807: Kernels with no compression support no longer work

Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1009807: Kernels with no compression support no longer work
Date Mon, 18 Apr 2022 21:30:01 +0200
Message-ID <EdFep-9CIM-3@gated-at.bofh.it> (permalink)
References <EdwXv-9xyN-7@gated-at.bofh.it> <EdwXv-9xyN-7@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Apr 18 19:27:09 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.962
Reply-To Ben Hutchings <ben@decadent.org.uk>, 1009807@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 1009807
X-Debian-Pr-Package initramfs-tools
X-Debian-Pr-Source initramfs-tools
Content-Type multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-xF8V40D/3epCDelc6WRb"
User-Agent Evolution 3.43.3-1
MIME-Version 1.0
X-Sa-Exim-Connect-IP 91.181.7.168
X-Sa-Exim-Mail-From ben@decadent.org.uk
X-Sa-Exim-Scanned No (on maynard); SAEximRunCond expanded to false
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1714037
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 83
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 18 Apr 2022 21:22:45 +0200
X-Original-Message-ID <eb7f222942c352bd6f1fb93f140473ea6c136569.camel@decadent.org.uk>
X-Original-References <8a291fbc-8c7c-fdc5-dea6-a3c555d6f7fe@tambre.ee> <8a291fbc-8c7c-fdc5-dea6-a3c555d6f7fe@tambre.ee>
Xref csiph.com linux.debian.bugs.dist:1100627 linux.debian.kernel:75071

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: tag -1 moreinfo

On Mon, 2022-04-18 at 13:30 +0300, Raul Tambre wrote:
> Package: initramfs-tools
> Version: 0.141
> Severity: important
> 
> Dear maintainer,
> 
> I was using a custom downstream kernel required for my hardware. The 
> kernel had only CONFIG_RD_XZ enabled, which I wasn't aware of.
> With version 0.141 initramfs creation fails with:
> 
>    Processing triggers for initramfs-tools (0.141) ...
>    update-initramfs: Generating /boot/initrd.img-4.14.102-rt53
>    grep: /boot/config-4.14.102-rt53: No such file or directory
>    W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzip
>    grep: /boot/config-4.14.102-rt53: No such file or directory
>    E: gzip compression (CONFIG_RD_GZIP) not supported by kernel
>    update-initramfs: failed for /boot/initrd.img-4.14.102-rt53 with 1.
>    dpkg: error processing package initramfs-tools (--configure):
>     installed initramfs-tools package post-installation script 
> subprocess returned error exit status 1
> 
> After commit 035190cc4385c0441dddc1bbaba000cf7f1f179b the code tries to 
> default to gzip if the first method didn't work, and errors if so. 
> Previously it would fall back to no compression.
[...]

I think you are being confused by the "early initramfs" that is
prepended to the main initramfs.  The early initramfs contains x86
microcode and must be uncompressed.  The main initramfs presumably can
be uncompressed, but initramfs-tools has never supported that and has
only ever had a fallback to gzip, which was assumed to be supported by
all kernel configurations.

It seems to me that your custom kernels have been booting without
actually using the main initramfs, because they could not decompress it
and they had all the necessary drivers built-in.

If you don't want or need an initramfs then (assuming you use "make
deb-pkg") you can disable CONFIG_BLK_DEV_INITRD and the package will
then also disable building an initramfs on installation.

If you do want an initramfs, then you should make sure the initramfs-
tools and kernel configurations agree on which compression method to
use.

Ben.

-- 
Ben Hutchings
To err is human; to really foul things up requires a computer.

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1009807: Kernels with no compression support no longer work Raul Tambre <raul@tambre.ee> - 2022-04-18 12:40 +0200
  Bug#1009807: Kernels with no compression support no longer work Ben Hutchings <ben@decadent.org.uk> - 2022-04-18 21:30 +0200
  Processed: Re: Bug#1009807: Kernels with no compression support  no longer work "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-04-18 21:30 +0200
  Bug#1009807: marked as done (Kernels with no compression support  no longer work) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-04-30 19:30 +0200

csiph-web