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


Groups > linux.debian.kernel > #68907

Re: Possible initramfs-tools issue

From Diederik de Haas <didi.debian@cknow.org>
Newsgroups linux.debian.kernel
Subject Re: Possible initramfs-tools issue
Date 2020-12-17 13:40 +0100
Message-ID <Bn0JA-2LO-11@gated-at.bofh.it> (permalink)
References <Bkhnz-B0-5@gated-at.bofh.it>
Organization Connecting Knowledge

Show all headers | View raw


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

On donderdag 10 december 2020 00:39:55 CET Diederik de Haas wrote:
> Recently there were 2 issues raised wrt raspi-firmware:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975943 and
> https://salsa.debian.org/raspi-team/image-specs/-/issues/37
> 
> In my last comment on the salsa issue, I reported that running 'update-
> initramfs -u' consistently triggered the issue.

It turns out that DPKG_MAINTSCRIPT_ARCH is not set on all invocations, 
resulting in incorrect code paths to be followed.

Added some 'echo' statements to /etc/kernel/postinst.d/z50-raspi-firmware and 
that resulted in the following output:

diederik@rpi-mpd:~$ sudo aptitude reinstall linux-image-5.9.0-4-arm64
[sudo] password for diederik: 
The following packages will be REINSTALLED:
  linux-image-5.9.0-4-arm64 
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not 
upgraded.
Need to get 0 B/45.1 MB of archives. After unpacking 0 B will be used.
[master 022a0d4] saving uncommitted changes in /etc prior to apt run
 1 file changed, 4 insertions(+), 4 deletions(-)
(Reading database ... 34689 files and directories currently installed.)
Preparing to unpack .../linux-image-5.9.0-4-arm64_5.9.11-1_arm64.deb ...
Unpacking linux-image-5.9.0-4-arm64 (5.9.11-1) over (5.9.11-1) ...
/etc/kernel/postrm.d/z50-raspi-firmware:
Script params, count=2:
Param 1: '5.9.0-4-arm64'
Param 2: '/boot/vmlinuz-5.9.0-4-arm64'
Setting up linux-image-5.9.0-4-arm64 (5.9.11-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.9.0-4-arm64
Script params, count=0:
DEB_MAINT_PARAMS:
configure
DPKG_MAINTSCRIPT_ARCH:
arm64
/etc/kernel/postinst.d/z50-raspi-firmware:
Script params, count=2:
Param 1: '5.9.0-4-arm64'
Param 2: '/boot/vmlinuz-5.9.0-4-arm64'
DEB_MAINT_PARAMS:
configure 5.9.11-1
DPKG_MAINTSCRIPT_ARCH:
arm64
                                         
diederik@rpi-mpd:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.9.0-4-arm64
Script params, count=0:
DEB_MAINT_PARAMS:
configure
DPKG_MAINTSCRIPT_ARCH:


Patch/MR submitted to raspi-firmware to fix the check.

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


Thread

Possible initramfs-tools issue Diederik de Haas <didi.debian@cknow.org> - 2020-12-10 00:50 +0100
  Re: Possible initramfs-tools issue Diederik de Haas <didi.debian@cknow.org> - 2020-12-17 13:40 +0100

csiph-web