Jim Gifford wrote:
Archaic and all I came around an interesting way to fix the cd-symlink issue, without having to use the script that is in LFS.org repo. Just passing on the information I just learned hopefully it will be useful to someone. These new rules are in the udev-cross-lfs packages as of today, if you want to test them out.

NAK: racy. The helper script assumes that new devices don't appear in /sys during operation.

Also in SVN, you have:

while [ $test -lt 1 ] ; do
        if [ -e /dev/cdrom$link ]; then
                link=$[$link+1]
        else
                test=1
        echo $link
        fi
done

This is basically a reimplementation of the old "%e" escape that was deliberately removed because it is unreliable. The order in which udev processes uevents is undefined, thus, in some cases, hdd will be handled before hdb, and in other cases, the order will be the opposite. Thus, /dev/cdrom will point to a random CD-ROM.

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to