diff --git a/initramfs/etc_rc.d_rc.sysinit.sh b/initramfs/etc_rc.d_rc.sysinit.sh index b6bc62b..12df268 100644 --- a/initramfs/etc_rc.d_rc.sysinit.sh +++ b/initramfs/etc_rc.d_rc.sysinit.sh @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: target/idunn/initramfs/etc_rc.d_rc.sysinit.sh -# Copyright (C) 2008 - 2009 The OpenSDE Project +# Copyright (C) 2008 - 2011 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -67,11 +67,22 @@ init="${init:-/sbin/init}" initopt="$*" EOT -title "Preparing /dev" -check mount -n -t tmpfs udev /dev +if grep -q devtmpfs /proc/filesystems; then + title "Preparing /dev (devtmpfs)" + check mount -n -t devtmpfs devtmpfs /dev + status +else + title "Preparing /dev (tmpfs)" + check mount -n -t tmpfs udev /dev + status + check cp -a /lib/udev/devices/* /dev + status +fi + +title "Preparing /dev/pts" check mkdir /dev/pts +status check mount -n -t devpts devpts /dev/pts -check cp -a /lib/udev/devices/* /dev status title "Starting supervisor"