Browse Source

initramfs: improved sysinit.rc.sh to use devtmpfs if possible

legacy/devtmpfs
Christian Wiese 13 years ago
parent
commit
ca6687712e
1 changed files with 15 additions and 4 deletions
  1. +15
    -4
      initramfs/etc_rc.d_rc.sysinit.sh

+ 15
- 4
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"

Loading…
Cancel
Save