mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
cleanup udev hook a bit
This commit is contained in:
parent
d4efb0b863
commit
3843053199
1 changed files with 0 additions and 12 deletions
|
@ -2,18 +2,6 @@
|
||||||
|
|
||||||
run_hook ()
|
run_hook ()
|
||||||
{
|
{
|
||||||
# mount tmpfs, else autodetection will fail!
|
|
||||||
if grep -q devtmpfs /proc/filesystems 2>/dev/null; then
|
|
||||||
/bin/mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid
|
|
||||||
else
|
|
||||||
/bin/mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
|
|
||||||
fi
|
|
||||||
# make extra nodes
|
|
||||||
ln -sf /proc/self/fd /dev/fd
|
|
||||||
ln -sf /proc/self/fd/0 /dev/stdin
|
|
||||||
ln -sf /proc/self/fd/1 /dev/stdout
|
|
||||||
ln -sf /proc/self/fd/2 /dev/stderr
|
|
||||||
ln -sf /proc/kcore /dev/core
|
|
||||||
# these static devices are created for convenience, to autoload the modules if necessary
|
# these static devices are created for convenience, to autoload the modules if necessary
|
||||||
# /dev/loop0
|
# /dev/loop0
|
||||||
mknod -m 0660 /dev/loop0 b 7 0
|
mknod -m 0660 /dev/loop0 b 7 0
|
||||||
|
|
Loading…
Reference in a new issue