raspi 64 bit Impish image fails update-initramfs with OOM on zstd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-settings (Ubuntu) |
Fix Released
|
Medium
|
Dave Jones | ||
Impish |
Won't Fix
|
Medium
|
Dave Jones | ||
Jammy |
Fix Released
|
Medium
|
Dave Jones |
Bug Description
When attempting to 'apt upgrade' on the pi zero 2 with the 64 bit Impish image and nothing new installed to it, update-initramfs fails like so:
Setting up linux-firmware (1.201.1) ...
update-initramfs: Generating /boot/initrd.
Killed E: mkinitramfs failure zstd -q -19 -T0 137
A simple workaround for now is to switch to the old lz4 default:
$ sudo apt install lz4
$ sudo sed -i -e '/^COMPRESS=/ c COMPRESS=lz4' /etc/initramfs-
Original Workaround
===================
Adding a swap file to the setup allowed 'apt -f install' to run successfully.
How the device was setup
1) xzcat | dd the sdcard with the impish 64 bit server image
2) setup for serial over USB (dtoverlay=dwc2, modules-
) as suggested in https:/
3) resize partition 2 - fdisk delete partition 2 and recreate to use the rest of the 16GB flash, e2fsck, resize2fs
4) cp bcm2710-rpi-3-b.dtb bcm2710-
5) boot, connect to wireless, ssh in
6) apt update && apt upgrade
7) observe above issue
ProblemType: Package
DistroRelease: Ubuntu 21.10
Package: linux-firmware 1.201.1
ProcVersionSign
Uname: Linux 5.13.0-1009-raspi aarch64
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Nov 8 19:47 seq
crw-rw---- 1 root audio 116, 33 Nov 8 19:47 timer
AlsaVersion: Advanced Linux Sound Architecture Driver Version k5.13.0-1009-raspi.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu71
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CasperMD5CheckR
Date: Mon Nov 8 21:00:59 2021
Dependencies:
ErrorMessage: installed linux-firmware package post-installation script subprocess returned error exit status 1
ImageMediaBuild: 20211013
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lspci:
Lspci-vt: -[0000:00]-
Lsusb: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t: /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
PackageArchitec
PciMultimedia:
ProcFB: 0 BCM2708 FB
ProcKernelCmdLine: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.
Python3Details: /usr/bin/python3.9, Python 3.9.7, python3-minimal, 3.9.4-1build1
PythonDetails: N/A
RelatedPackageV
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux-firmware
StagingDrivers: bcm2835_mmal_vchiq snd_bcm2835 bcm2835_isp bcm2835_v4l2 bcm2835_codec vc_sm_cma
Title: package linux-firmware 1.201.1 failed to install/upgrade: installed linux-firmware package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump:
no longer affects: | linux-firmware (Ubuntu) |
summary: |
- raspi 64 bit Impish image can't 'apt upgrade' without adding swap on pi - zero 2 + raspi 64 bit Impish image fails update-initramfs with OOM on zstd |
Changed in initramfs-tools (Ubuntu): | |
status: | New → Confirmed |
Changed in ubuntu-settings (Ubuntu Jammy): | |
status: | New → Confirmed |
Changed in ubuntu-settings (Ubuntu Impish): | |
status: | New → Confirmed |
Changed in ubuntu-settings (Ubuntu Impish): | |
importance: | Undecided → High |
Changed in ubuntu-settings (Ubuntu Jammy): | |
importance: | Undecided → High |
Changed in ubuntu-settings (Ubuntu Impish): | |
importance: | High → Medium |
Changed in ubuntu-settings (Ubuntu Jammy): | |
importance: | High → Medium |
no longer affects: | initramfs-tools (Ubuntu Jammy) |
no longer affects: | initramfs-tools (Ubuntu Impish) |
no longer affects: | initramfs-tools (Ubuntu) |
This is down to initramfs-tools switching to zstd by default, which has such huge memory requirements that it gets killed by OOM on the Zero 2 (and presumably the 3A+?) which only has 512MB of RAM. The default should be switched back to lz4, at least on the Pi images.
Note to self: add a test for update-initramfs -u to the ISO tracker for the Pi server images to ensure it gets tested across the platforms.