Dracut cannot be used to generate kernel initramfs image

Bug #1660587 reported by AsciiWolf on 2017-01-31
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned

Bug Description

Unlike Debian, the Ubuntu kernel packages have hardcoded "update-initramfs" in the postinst script, making it impossible to use Dracut to generate initramfs image for the package.
---
ApportVersion: 2.20.4-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: asciiwolf 2319 F.... pulseaudio
DistroRelease: Ubuntu 17.04
HibernationDevice: RESUME=UUID=7aaa5193-1c44-4e73-8fe0-6e25a5d5b95a
InstallationDate: Installed on 2016-05-05 (270 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
IwConfig:
 lo no wireless extensions.

 enp0s3 no wireless extensions.
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: innotek GmbH VirtualBox
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=cs
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=cs_CZ.UTF-8
 SHELL=/bin/bash
ProcFB: 0 vboxdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.9.0-12-generic root=UUID=5eb355dc-59d2-40c7-b52a-7cf31cd6dc3b ro quiet splash
ProcVersionSignature: Ubuntu 4.9.0-12.13-generic 4.9.2
PulseList:
 Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
 No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-4.9.0-12-generic N/A
 linux-backports-modules-4.9.0-12-generic N/A
 linux-firmware 1.162
RfKill:

Tags: zesty
Uname: Linux 4.9.0-12-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1660587

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete

apport information

tags: added: apport-collected zesty
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
Franck schneider (nuxer) wrote :

I guess this bug is why I can't upgrade my kernel :
( 17.04 + zfs-dracut )

Setting up linux-image-4.10.0-20-generic (4.10.0-20.22) ...
Running depmod.
sh: 1: /usr/sbin/update-initramfs: not found
Failed to create initrd image.
[...]

AsciiWolf (asciiwolf) on 2017-06-16
tags: added: artful
AsciiWolf (asciiwolf) wrote :

Any news?

AsciiWolf (asciiwolf) on 2017-11-09
tags: added: bionic l10n xenial
tags: removed: l10n xenial
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers