diff options
author | Dirk von Suchodoletz | 2007-05-05 13:48:54 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-05-05 13:48:54 +0200 |
commit | 03e025f7517a791814f77d3ac05acb53a275b0d1 (patch) | |
tree | a5df49f4fd55d0cb991e7f76f20be932c0080ddb /initramfs/initrd-stuff/init | |
parent | * removed code that tries to set defaults to columns that do not exist anymore (diff) | |
download | core-03e025f7517a791814f77d3ac05acb53a275b0d1.tar.gz core-03e025f7517a791814f77d3ac05acb53a275b0d1.tar.xz core-03e025f7517a791814f77d3ac05acb53a275b0d1.zip |
More standard device nodes seem to be needed (when mdev is used instead
of "big" udev).
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@994 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-x | initramfs/initrd-stuff/init | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init index 6825d450..e83b1939 100755 --- a/initramfs/initrd-stuff/init +++ b/initramfs/initrd-stuff/init @@ -47,18 +47,18 @@ nodnbdcache="yes" devdir="/dev" mount -n -t tmpfs -o 'size=25%,mode=0755' initramfsdevs ${devdir} -# create basic device files in dev (later udev will handle that) -mknod /dev/mem c 1 1 -mknod /dev/null c 1 3 -mknod /dev/zero c 1 5 -mknod /dev/urandom c 1 9 -mknod /dev/kmsg c 1 11 -mknod /dev/console c 5 1 -mknod /dev/bootsplash p - -mkdir -p ${devdir}/pts -mkdir -p ${devdir}/shm -mkdir -p ${devdir}/.udevdb +# create basic device files an directories in dev (for most hardware related +# devices mdev should handle that) +for i in "/dev/mem c 1 1" "/dev/null c 1 3" "/dev/zero c 1 5" \ + "/dev/urandom c 1 9" "/dev/kmsg c 1 11" "/dev/tty0 c 4 0" \ + "/dev/tty1 c 4 1" "/dev/tty2 c 4 2" "/dev/tty3 c 4 3" \ + "/dev/tty4 c 4 4" "/dev/tty5 c 4 5" "/dev/tty6 c 4 6" \ + "/dev/tty7 c 4 7" "/dev/tty8 c 4 8" "/dev/tty9 c 4 9" \ + "/dev/tty10 c 4 10" "/dev/console c 5 1" "/dev/ptmx c 5 2" \ + "/dev/fb0 c 29 0" "/dev/bootsplash p" "/dev/xconsole p"; do + mknod $i +done +mkdir -p ${devdir}/pts ${devdir}/shm ${devdir}/.udevdb ${devdir}/.udev # mount the important standard directories [ ! -f /proc/cpuinfo ] && mount -n -t proc proc /proc |