add init changes from mkinitcpio

This commit is contained in:
Tobias Powalowski 2010-12-11 22:38:16 +01:00
parent cb53479c36
commit d4efb0b863

View file

@ -5,9 +5,20 @@ ln -s /bin/bash /bin/sh
ln -s /sbin/modprobe /bin/modprobe
msg ":: Loading Initramfs"
/bin/mount -t proc proc /proc -o nosuid,noexec,nodev
/bin/mount -t sysfs sys /sys -o nosuid,noexec,nodev
/bin/mount -t sysfs none /sys
/bin/mount -t proc none /proc
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
# We don't have devtmpfs, so add the most important standard devices
/bin/mknod /dev/null c 1 3
/bin/mknod /dev/zero c 1 5
/bin/mknod /dev/console c 5 1
# /dev/mem is needed if we want to load uvesafb before triggering uevents
/bin/mknod /dev/mem c 1 1
fi
read CMDLINE </proc/cmdline
export CMDLINE