X-Git-Url: http://gitweb/?a=blobdiff_plain;f=udev%2Fstart_udev;h=d8f4b26fce9e6a6c72a3df6d832330355dead79d;hb=85d7f4dce74bfb717adc76a0c9ad9594341c323e;hp=3319a4d18adef8406baacbe0dbf034e0705c6f05;hpb=1dda3c1bca1d343f0447dfb4f60c6a96f1a7f787;p=crossrootfs.git diff --git a/udev/start_udev b/udev/start_udev index 3319a4d..d8f4b26 100644 --- a/udev/start_udev +++ b/udev/start_udev @@ -1,6 +1,6 @@ #!/bin/sh -# - if /dev is not mounted - mount as a devtmpfs (CONFIG_DEVTMPFS=y) or tmpfs +# - if /dev is not mounted - mount as a devtmpfs (CONFIG_DEVTMPFS=y) # - if /dev is mounted (e.g. due to handover from initramfs or # CONFIG_DEVTMPFS_MOUNT=y), remount with specific options # - some video drivers require exec access in /dev, thus it's set here @@ -10,14 +10,12 @@ UDEVOPTS="exec,nosuid,noatime,mode=0755,nr_blocks=2048,nr_inodes=16384" if /bin/mountpoint -q /dev ; then /bin/mount -n -o remount,${UDEVOPTS} dev /dev else - if /bin/sed -n '/devtmpfs/q1' /proc/filesystems ; then - UDEVFS=tmpfs - else - UDEVFS=devtmpfs - fi - /bin/mount -n -t $UDEVFS -o ${UDEVOPTS} dev /dev + /bin/mount -n -t devtmpfs -o ${UDEVOPTS} dev /dev fi +# mount /run directory +/bin/mount -n -t tmpfs -o mode=0755,nosuid,nodev,exec tmpfs /run + # make sure hotplugger is not set echo > /proc/sys/kernel/hotplug @@ -32,6 +30,3 @@ test -z "$(/bin/pidof -s udevd)" && /sbin/udevd --daemon /sbin/udevadm trigger --type=devices --action=add /sbin/udevadm settle -# retry any failures -/sbin/udevadm trigger --type=failed --action=add -/sbin/udevadm settle