diff options
author | Dirk von Suchodoletz | 2009-03-29 03:00:24 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-03-29 03:00:24 +0200 |
commit | be830ab8eea3610b2f411d6ebcb84cec2d064483 (patch) | |
tree | 48553d27c19dc8ee7d41d6b0cff3b6cf63a1b3d7 /initramfs/stage3-stuff/init | |
parent | Fixed psmouse module handling. (diff) | |
download | core-be830ab8eea3610b2f411d6ebcb84cec2d064483.tar.gz core-be830ab8eea3610b2f411d6ebcb84cec2d064483.tar.xz core-be830ab8eea3610b2f411d6ebcb84cec2d064483.zip |
Fixing the /dev/shm issue of #403, #404, improving udev handling
in Ubuntu (to avoid tampering with /dev/shm permissions).
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2768 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/init')
-rwxr-xr-x | initramfs/stage3-stuff/init | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init index b1de9a82..7aef385a 100755 --- a/initramfs/stage3-stuff/init +++ b/initramfs/stage3-stuff/init @@ -38,6 +38,12 @@ for i in "/dev/mem c 1 1" "/dev/null c 1 3" "/dev/zero c 1 5" \ done mkdir -p ${devdir}/pts ${devdir}/shm ${devdir}/.udevdb ${devdir}/.udev \ ${devdir}/.initramfs /var/log +# create some standard links (expected?) in /dev +ln -s /proc/kcore /dev/core +ln -s /proc/self/fd /dev/fd +ln -s /proc/self/fd/0 /dev/stdin +ln -s /proc/self/fd/1 /dev/stdout +ln -s /proc/self/fd/2 /dev/stderr # start device auto discovery/setup service of busybox echo >/etc/mdev.conf @@ -938,7 +944,7 @@ sed -n "s,/mnt,,;/\/tmp /p" /proc/mounts >> /mnt/etc/mtab # preparations to leave initramfs - umounting ... umount -n /sys || error "$init_errsys" nonfatal umount -n /proc/bus/usb >/dev/null 2>&1 -chmod 1777 /mnt/dev/shm /mnt/tmp 2>/dev/null +chmod 1777 /dev/shm /mnt/tmp 2>/dev/null runinithook '95-cleanup' |