All pastes #31501 Raw Edit

Someone

public text v1 · immutable
#31501 ·published 2005-11-28 09:33 UTC
rendered paste body
# Populate /dev tree
log_begin_msg "Initializing /dev"
udevd_timeout=30
echo > /proc/sys/kernel/hotplug
mkdir $udev_root/.udev $udev_root/.udev/db/ $udev_root/.udev/queue/
udevd --daemon
udevsynthesize
while [ -d /dev/.udev/queue/ ]; do
        sleep 1
        udevd_timeout=$(($udevd_timeout - 1))
        if [ $udevd_timeout -eq 0 ]; then
                break
        fi
done
log_end_msg

--- snipp
# Move our /dev to the real filesystem.  Do the setup that udev otherwise
# would.
mkdir -p /dev/.static/dev
chmod 700 /dev/.static/
mount -n -o bind ${rootmnt}/dev /dev/.static/dev
mount -n -o move /dev ${rootmnt}/dev