[Bug 1947871] Re: package linux-image-5.11.0-38-generic 5.11.0-38.42~20.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Alistair
1947871 at bugs.launchpad.net
Wed Oct 20 13:33:50 UTC 2021
Identified that the command :
update-initramfs: Generating /boot/initrd.img-5.11.0-38-generic
required approx 88M of disk space on /boot, but I only had 73M:
df -h /boot
bpool/BOOT/ubuntu_l3g9y7 286M 213M 73M 75% /boot
Problem resolved by manually running zsys garbage collection (laptop, so
scheduled jobs are unable to run when the laptop is off/hybernating.
To demonstrate, use "zsysctl machine show to list the ZFS snapshots that
are part of zsys. Use with wc to show the number of snapshots before
garbage collection and after, hopefully with a reduction:
zsysctl machine show|wc
127 468 7959
zsysctl service gc
zsysctl machine show|wc
105 381 6350
Free space after this has run:
df -lh /boot
Filesystem Size Used Avail Use% Mounted on
bpool/BOOT/ubuntu_l3g9y7 375M 202M 174M 54% /boot
Monitoring the Avail space for boot while re-running apt upgrade :
df -h /boot
Filesystem Size Used Avail Use% Mounted on
bpool/BOOT/ubuntu_l3g9y7 375M 289M 86M 78% /boot
before returning to 174M available.
zfs list -r bpool
NAME USED AVAIL REFER MOUNTPOINT
bpool 1.58G 174M 96K /boot
bpool/BOOT 1.58G 174M 96K none
bpool/BOOT/ubuntu_l3g9y7 1.58G 174M 201M /boot
The used space in this case is in zfs snapshots, hence zsys garbage
collection resolved this.
Where zfs and zsys are installed, checking free space and "bloat"
required space, with the option/suggestion to run "zsysctl service gc".
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1947871
Title:
package linux-image-5.11.0-38-generic 5.11.0-38.42~20.04.1 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools
exited with return code 1
Status in initramfs-tools package in Ubuntu:
New
Bug description:
System error reported - while reading webpage. last login in last 10 minutes, so possibly an auto update.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
uname -a
Linux alistair-HP-EliteBook-8470p 5.11.0-37-generic #41~20.04.2-Ubuntu SMP Fri Sep 24 09:06:38 UTC 2021 x86_64 x86_64 x86_64
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: linux-image-5.11.0-38-generic 5.11.0-38.42~20.04.1
ProcVersionSignature: Ubuntu 5.11.0-37.41~20.04.2-generic 5.11.22
Uname: Linux 5.11.0-37-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27.20
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Oct 20 13:55:09 2021
ErrorMessage: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
InstallationDate: Installed on 2020-11-12 (342 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python3.8, Python 3.8.10, python-is-python3, 3.8.2-4
RelatedPackageVersions:
dpkg 1.19.7ubuntu3
apt 2.0.6
SourcePackage: initramfs-tools
Title: package linux-image-5.11.0-38-generic 5.11.0-38.42~20.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1947871/+subscriptions
More information about the foundations-bugs
mailing list