framebuffer: consolidate calls to udevadm settle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
Low
|
Unassigned | ||
initramfs-tools (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: initramfs-tools
In scripts/
if [ -n "${FB}" ]; then
# Some framebuffer devices need character devices :-/
udevadm settle
MODPROBE_
# Wait for the framebuffer devices to be ready
udevadm settle
else
# If we have no graphics devices yet, wait for udev to settle
[ -d /sys/class/
[ -d /sys/class/
[ -d /sys/class/
fi
The else clause here appears to be called even on a headless system, which would presumably cause us to call 'udevadm settle' 3 times. Sure, it should be fast (unless there's a bug, which in my case there is), but not as fast as just calling it once. Since I don't see any functional value in calling it each time, I propose we consolidate to one.
Related branches
Changed in initramfs-tools (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Low |
Changed in oem-priority: | |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in oem-priority: | |
status: | Fix Committed → Fix Released |
Suggested patch.