Patch attached. This resolves the failure in the initramfs hook where an
unconditional copy command causes update-initramfs to abort when the
override directory is empty. The fix implements a defensive check to
ensure the directory contains files before execution.

I have verified the solution using a clean-room environment on Ubuntu
Noble (arm64). The package was rebuilt from source, and the resulting
artifact was validated via A/B testing against the upstream version.
This confirmed that the patch successfully repairs the broken package
state while preserving functionality for populated directories. Detailed
reproduction steps and raw verification logs: https://github.com/YIN-
Renlong/ubuntu-launchpad-patch-log/tree/main/acpi-override/bug-1892035

Update: Apologies, I accidentally set the status to "Fix Released" while
trying to select "In Progress". I do not have permission to revert it.
Could a Bug Supervisor please revert the status to "In Progress"?
Thanks.

** Patch added: "lp1892035-fix-empty-dir-crash.patch"
   
https://bugs.launchpad.net/ubuntu/+source/acpi-override/+bug/1892035/+attachment/5941155/+files/lp1892035-fix-empty-dir-crash.patch

** Changed in: acpi-override (Ubuntu)
     Assignee: (unassigned) => YIN Renlong (renlong)

** Changed in: acpi-override (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1892035

Title:
  acpi-override-initramfs makes update-initramfs fail when
  /var/lib/acpi-override/ is empty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi-override/+bug/1892035/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to