Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

init's MAKEDEV vs. postinstall fix (old tty nodes)



Hi!

With a tmpfs /dev init calls:

     "MAKEDEV -MM init"

(see sbin/init/init.c starting from line 1704)

which calls
        makedev all opty

of which opty does

opty)
        # Create 16 device nodes, [pt]typ0 to [pt]typf
...
                mkdev ttyp$j c 5 $jn 666
                mkdev ptyp$j c 6 $jn 666


On the other hand, "postinstall fix" does:

ptyfsoldnodes fix:
        Removed legacy device node /dev/ptyp0
        Removed legacy device node /dev/ptyp1
        Removed legacy device node /dev/ptyp2
        Removed legacy device node /dev/ptyp3
        Removed legacy device node /dev/ptyp4
        Removed legacy device node /dev/ptyp5
        Removed legacy device node /dev/ptyp6
        Removed legacy device node /dev/ptyp7
        Removed legacy device node /dev/ptyp8
        Removed legacy device node /dev/ptyp9
        Removed legacy device node /dev/ptypa
        Removed legacy device node /dev/ptypb
        Removed legacy device node /dev/ptypc
        Removed legacy device node /dev/ptypd
        Removed legacy device node /dev/ptype
        Removed legacy device node /dev/ptypf
        Removed legacy device node /dev/ttyp0
        Removed legacy device node /dev/ttyp1
        Removed legacy device node /dev/ttyp2
        Removed legacy device node /dev/ttyp3
        Removed legacy device node /dev/ttyp4
        Removed legacy device node /dev/ttyp5
        Removed legacy device node /dev/ttyp6
        Removed legacy device node /dev/ttyp7
        Removed legacy device node /dev/ttyp8
        Removed legacy device node /dev/ttyp9
        Removed legacy device node /dev/ttypa
        Removed legacy device node /dev/ttypb
        Removed legacy device node /dev/ttypc
        Removed legacy device node /dev/ttypd
        Removed legacy device node /dev/ttype
        Removed legacy device node /dev/ttypf


So my question is: if "postinstall fix" removes these devices on an
upgrade, why does init still create them?

This looks inconsistent. Which of the two should be changed?
 Thomas



Home | Main Index | Thread Index | Old Index