|
|
@ -22,11 +22,18 @@ |
|
|
|
|
|
|
|
udev_pm() { |
|
|
|
mkdir -p $root/lib/udev/devices |
|
|
|
# the deletion and re-creation is needed for stage 9 rebuilds |
|
|
|
rm -f $root/lib/udev/devices/fd |
|
|
|
ln -sv /proc/self/fd $root/lib/udev/devices/fd |
|
|
|
rm -f $root/lib/udev/devices/core |
|
|
|
ln -sv /proc/kcore $root/lib/udev/devices/core |
|
|
|
rm -f $root/lib/udev/devices/stdin |
|
|
|
ln -sv /proc/self/fd/0 $root/lib/udev/devices/stdin |
|
|
|
rm -f $root/lib/udev/devices/stdout |
|
|
|
ln -sv /proc/self/fd/1 $root/lib/udev/devices/stdout |
|
|
|
rm -f $root/lib/udev/devices/stderr |
|
|
|
ln -sv /proc/self/fd/2 $root/lib/udev/devices/stderr |
|
|
|
rm -rf $root/lib/udev/devices/{pts,shm} |
|
|
|
mkdir -p $root/lib/udev/devices/{pts,shm} |
|
|
|
# mkinitrd quickhack - wouldn't be included in the initrd otherwise |
|
|
|
touch $root/lib/udev/devices/{pts,shm}/.empty |
|
|
|