diff --git a/usr/share/archboot/base/init b/usr/share/archboot/base/init index 91817630a..6a5a3e4de 100755 --- a/usr/share/archboot/base/init +++ b/usr/share/archboot/base/init @@ -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