96 |
[ -c /dev/console ] ; need_redirect=$? |
[ -c /dev/console ] ; need_redirect=$? |
97 |
|
|
98 |
# create a ramdisk for populating udev |
# create a ramdisk for populating udev |
99 |
rc_print "Mounting udev at /dev ..." |
if [[ -z $(grep '[[:space:]]/dev[[:space:]]' /proc/mounts | cut -d ' ' -f2) ]] |
100 |
# many video drivers needed exec access |
then |
101 |
fstype=ramfs |
rc_print "Mounting udev at /dev ..." |
102 |
# tmpfs was suggested by Greg Kroah-Hartman |
# many video drivers needed exec access |
103 |
kernel_supports_fs tmpfs && fstype=tmpfs |
fstype=ramfs |
104 |
# mount devtmpfs if supported |
# tmpfs was suggested by Greg Kroah-Hartman |
105 |
kernel_supports_fs devtmpfs && fstype=devtmpfs |
kernel_supports_fs tmpfs && fstype=tmpfs |
106 |
mount -n -t ${fstype} udev /dev -o exec,nosuid,mode=0755,size=10M |
# mount devtmpfs if supported |
107 |
evaluate_retval |
kernel_supports_fs devtmpfs && fstype=devtmpfs |
108 |
|
mount -n -t ${fstype} dev /dev -o exec,nosuid,mode=0755,size=10M |
109 |
|
evaluate_retval |
110 |
|
fi |
111 |
|
|
112 |
# if a device tarball exists load it and if it is activated |
# if a device tarball exists load it and if it is activated |
113 |
rc_print "Configurating system to use udev ..." |
rc_print "Configurating system to use udev ..." |