[Bug 300742] Re: mkinitramfs handles errors very badly due to use of /usr/share/initramfs-tools/scripts/functions
Benjamin Drung
300742 at bugs.launchpad.net
Fri Oct 4 11:05:24 UTC 2024
Thank you for taking the time to report this bug and helping to make
Ubuntu better. I tried to reproduce your bug on Ubuntu 24.04:
```
sudo touch /etc/initramfs-tools/hooks/foo-bar-baz
sudo update-initramfs -u
```
Generating the initrd was successful. Does your complaint still apply to
recent Ubuntu versions?
** Changed in: initramfs-tools (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/300742
Title:
mkinitramfs handles errors very badly due to use of
/usr/share/initramfs-tools/scripts/functions
Status in initramfs-tools package in Ubuntu:
Incomplete
Bug description:
Binary package hint: initramfs-tools
mkinitramfs uses /usr/share/initramfs-tools/scripts/functions for
handling certain tasks. Errors that occur in those functions cause
the panic function to be called. This launches an interactive shell
that steals /dev/console. If this occurs when the user is running X,
the keyboard stops working. This is rather unpleasant.
To trigger the bug, try adding a hook with a hyphen in the filename
(i.e. /etc/initramfs-tools/hooks/foo-bar-baz).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/300742/+subscriptions
More information about the foundations-bugs
mailing list