Package: initramfs-tools
Version: 0.84
Severity: minor
Tags: patch
The init-top/framebuffer script has the following lines (83 - 92):
if [ -e /proc/fb ]; then
while read fbno desc; do
mknod /dev/fb$fbno c 29 $fbno
done < /proc/fb
mknod /dev/fb0 c 29 0
for i in 0 1 2 3 4 5 6 7 8; do
mknod /dev/tty$i c 4 $i
done
fi
The problem is that the "mknod /dev/fb0" will be executed twice if fb0
has already been found in /proc/fb. The fix would be to change it to:
if [ -e /proc/fb ]; then
while read fbno desc; do
mknod /dev/fb$fbno c 29 $fbno
done < /proc/fb
if [ ! -e /dev/fb0 ]; then
mknod /dev/fb0 c 29 0
fi
for i in 0 1 2 3 4 5 6 7 8; do
mknod /dev/tty$i c 4 $i
done
fi
--
David Härdeman