/usr/share/initramfs-tools/hooks/udev fails if /etc/udev/rules.d contains directories

Bug #1605941 reported by psmar
150
This bug affects 36 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

update-initramfs: Generating /boot/initrd.img-4.4.0-28-generic
cp: omitting directory '/etc/udev/rules.d/10-network.rules'
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-28-generic with 1.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: initramfs-tools 0.122ubuntu8.1
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Sat Jul 23 15:50:43 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-06-27 (26 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.12~ubuntu16.04.1
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.122ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
psmar (ibpsmar) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
Changed in initramfs-tools (Ubuntu):
importance: Undecided → High
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The relevant dpkg terminal log says:

update-initramfs: Generating /boot/initrd.img-4.4.0-28-generic
cp: omitting directory '/etc/udev/rules.d/10-network.rules'
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-28-generic with 1.

This failure can be easily reproduced by creating a directory in the udev rules directory:

```
$ schroot-wrapper -p initramfs-tools,udev,linux-image-generic,zstd -u root -c noble
[...]
$ mkdir /etc/udev/rules.d/10-network.rules
$ update-initramfs -u
cp: -r not specified; omitting directory '/etc/udev/rules.d/10-network.rules'
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.5.0-9-generic with 1.
```

/usr/share/initramfs-tools/hooks/udev is shipped by udev. So re-assigning to the corresponding source package systemd.

affects: initramfs-tools (Ubuntu) → systemd (Ubuntu)
description: updated
Changed in systemd (Ubuntu):
status: Confirmed → Triaged
summary: - package initramfs-tools 0.122ubuntu8.1 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 1
+ /usr/share/initramfs-tools/hooks/udev fails if /etc/udev/rules.d
+ contains directories
Revision history for this message
Nick Rosbrook (enr0n) wrote :

Uh, isn't the real problem that in this case /etc/udev/rules.d/10-network.rules is a *directory*, and not a *file*?

Revision history for this message
Nick Rosbrook (enr0n) wrote :

Given the age of this, I am going to mark won't fix, but please re-open if you think I am wrong.

Changed in systemd (Ubuntu):
status: Triaged → Won't Fix
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.