[Bug 1669420] [NEW] udevadm unconfigured script leaks into initrd causing boot failure
C Filorux
breakfast at lunch.za.net
Thu Mar 2 13:04:58 UTC 2017
Public bug reported:
If update-initramfs is run while udevadm is "unconfigured", then the
system is rendered unbootable. Instead of containing a working version
of udevadm, the "initrd" is built with the wrapper script that reports
an error, and proceeds no further (as per code below).
Please incorporate the check for 'unconfigured' into the code for
udevadm, so that the udevadm binary can work correctly whether it is on
an unconfigured system, or an initrd.
This was a sticky problem, because no amount of 'dpkg-reconfigure udev'
did the required 'mv udevadm.upgrade udevadm'
#!/bin/sh
if [ "$1" = "trigger" ]; then
echo "udevadm trigger is not permitted while udev is unconfigured." 1>&2
exit 1
fi
# ... snip ...
exec /bin/bash -c "exec -a \"\$0\" /bin/udevadm.upgrade \"\$@\"" "$0" "$@"
** Affects: udev (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/1669420
Title:
udevadm unconfigured script leaks into initrd causing boot failure
Status in udev package in Ubuntu:
New
Bug description:
If update-initramfs is run while udevadm is "unconfigured", then the
system is rendered unbootable. Instead of containing a working
version of udevadm, the "initrd" is built with the wrapper script that
reports an error, and proceeds no further (as per code below).
Please incorporate the check for 'unconfigured' into the code for
udevadm, so that the udevadm binary can work correctly whether it is
on an unconfigured system, or an initrd.
This was a sticky problem, because no amount of 'dpkg-reconfigure
udev' did the required 'mv udevadm.upgrade udevadm'
#!/bin/sh
if [ "$1" = "trigger" ]; then
echo "udevadm trigger is not permitted while udev is unconfigured." 1>&2
exit 1
fi
# ... snip ...
exec /bin/bash -c "exec -a \"\$0\" /bin/udevadm.upgrade \"\$@\"" "$0" "$@"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/1669420/+subscriptions
More information about the foundations-bugs
mailing list