Thanks Daniel! Your fix is correct — moving `exit 1` into the else
branch is exactly what's needed to properly fail when initrd is missing.

Small note: The final `exit 0` after the `fi` is technically unreachable
since both branches explicitly exit, but the logic is sound and would
work.

This would properly propagate the failure to dpkg/apt and prevent
unbootable systems from being created.

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

Title:
  55-initrd.install silently exits 0 when initrd missing causing
  undetectable kernel panic on NVMe systems

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2141741/+subscriptions


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

Reply via email to