package linux-image-5.4.0-37-generic 5.4.0-37.41 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1

Bug #1883345 reported by Zaphod BIII
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sicherboot (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Linux saturn 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I: Set the RESUME variable to override this.
sicherboot: Installing 5.4.0-37-generic to ESP
cat: /etc/kernel/cmdline: No such file or directory
objcopy: cannot open: /etc/kernel/cmdline: No such file or directory
run-parts: /etc/initramfs/post-update.d//zz-sicherboot exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-37-generic (--configure):
 installed linux-image-5.4.0-37-generic package post-installation script subproc
ess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
 linux-image-5.4.0-37-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: linux-image-5.4.0-37-generic 5.4.0-37.41
ProcVersionSignature: Ubuntu 5.4.0-33.37-generic 5.4.34
Uname: Linux 5.4.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ford 2896 F.... pulseaudio
CasperMD5CheckResult: skip
Date: Fri Jun 12 23:10:44 2020
ErrorMessage: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
InstallationDate: Installed on 2020-05-07 (36 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
IwConfig:
 lo no wireless extensions.

 enp3s0 no wireless extensions.

 enp7s0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-33-generic root=UUID=9add8ec4-19e1-4a98-87eb-c5c415fcf690 ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions: grub-pc 2.04-1ubuntu26
RfKill:

SourcePackage: initramfs-tools
Title: package linux-image-5.4.0-37-generic 5.4.0-37.41 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)
dmi.bios.date: 01/06/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F20e
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: Z77X-UD3H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF20e:bd01/06/2014:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnZ77X-UD3H:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: To be filled by O.E.M.
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Zaphod BIII (maheinmuc) wrote :
Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

Processing triggers for linux-image-5.4.0-37-generic (5.4.0-37.41) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-37-generic
I: The initramfs will attempt to resume from /dev/sdb4
I: (UUID=88dc372a-433f-49a6-ac50-550ac780984f)
I: Set the RESUME variable to override this.
sicherboot: Installing 5.4.0-37-generic to ESP
cat: /etc/kernel/cmdline: No such file or directory
objcopy: cannot open: /etc/kernel/cmdline: No such file or directory
run-parts: /etc/initramfs/post-update.d//zz-sicherboot exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1

affects: initramfs-tools (Ubuntu) → sicherboot (Ubuntu)
Revision history for this message
Julian Andres Klode (juliank) wrote :

You want to read the error message and act on it by creating the /etc/kernel/cmdline file with your needed kernel command-line.

Changed in sicherboot (Ubuntu):
status: New → Invalid
Revision history for this message
Pablo Hörtner (redtux2000) wrote :

This is a bug in sicherboot. Unfortunately, it still exists with version 0.1.5 on Ubuntu "hirsute" 21.04. Creating a symlink seems to work fine, so this might be added to the sicherboot postinst.
ln -s /proc/cmdline /etc/kernel/cmdline

(uname -r: 5.11.0-16-generic)

Changed in sicherboot (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Wladimir Mutel (mwg) wrote :

is this package still maintained ? it look like abandoned by its author for 6+ years.
so why it is still present in Ubuntu ? it is useless without reviewing all its scripts and hooks.
I still have yet to figure out why it does not add initrd lines into loader entries.

Changed in sicherboot (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Julian Andres Klode (juliank) wrote :

My comment in #3 still stands. And no symlinking /proc/cmdline is not entirely correct it contains additional data injected at boot time like BOOT_IMAGE, hence create the file with the content you care about.

Wladimir, we have removed it, it's not shipped past 22.04. It's also not supported at all. And if you don't understand why it doesn't add initrd lines you missed the main point of the package, it sets up UKIs as they are now called and signs everything with a local key such that you can FDE everything except the ESP and have a verified boot path because the initrd is part of the UKI and hence signed and verified.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.