acpi-override-initramfs makes update-initramfs fail when /var/lib/acpi-override/ is empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-override (Debian) |
New
|
Unknown
|
|||
acpi-override (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
Ubuntu 20.04, but the same version is also in 20.10
user@system:~$ sudo apt install acpi-override-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
acpi-
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2.640 B of archives.
After this operation, 17,4 kB of additional disk space will be used.
Selecting previously unselected package acpi-override-
(Reading database ... 206064 files and directories currently installed.)
Preparing to unpack .../acpi-
Unpacking acpi-override-
Setting up acpi-override-
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6.2) ...
update-initramfs: Generating /boot/initrd.
cp: cannot stat '/var/lib/
E: /usr/share/
update-initramfs: failed for /boot/initrd.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned
error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
I assume the problematic statement is in line 18 in /usr/share/
cp -a /var/lib/
If there is no file in /var/lib/
In my opinion the cp command should only be executed when files exist, so it probably has to be put into some kind of "if" clause (or needs an "ignore-if-empty" option).
summary: |
- acpi-override-initramfs makes update-initramsfs fail as long as - /var/lib/acpi-override/* does not exist + acpi-override-initramfs makes update-initramsfs fail as long as + /var/lib/acpi-override/ is empty |
summary: |
- acpi-override-initramfs makes update-initramsfs fail as long as + acpi-override-initramfs makes update-initramfs fail as long as /var/lib/acpi-override/ is empty |
summary: |
- acpi-override-initramfs makes update-initramfs fail as long as - /var/lib/acpi-override/ is empty + acpi-override-initramfs makes update-initramfs fail when /var/lib/acpi- + override/ is empty |
Changed in acpi-override (Debian): | |
status: | Unknown → New |
Changed in acpi-override (Ubuntu): | |
importance: | Undecided → High |
Status changed to 'Confirmed' because the bug affects multiple users.