commit 9ae481d187db4355e38ef406fd00abb0c357c3b4
parent 63e9f459bad8f9242503f2af1cb762980558a518
Author: sin <sin@2f30.org>
Date: Sat, 15 Mar 2014 19:50:53 +0000
Mount /dev as tmpfs - no need to use devtmpfs
We use smdev early to populate /dev.
Diffstat:
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/bin/rc.init b/bin/rc.init
@@ -21,12 +21,14 @@ mount -n -t proc proc /proc
grep -q " verbose" /proc/cmdline && dmesg -n 8 || dmesg -n 3
mount -n -t sysfs sysfs /sys
-mount -n -t devtmpfs dev /dev
+mount -n -t tmpfs -o nosuid,mode=0755 dev /dev
mkdir -p /dev/pts
mount -n -t devpts -o gid=5,mode=620 devpts /dev/pts
-
mount -o remount,ro /
+echo Running smdev
+smdev -s
+
echo Checking filesystems
fsck -ATa
if [ $? -eq 1 ]; then
@@ -43,9 +45,6 @@ ln -sf /proc/mounts /etc/mtab
echo Mounting filesystems
mount -a
-echo Running smdev
-smdev -s
-
echo Setting smdev as the kernel hotplug
echo /bin/smdev > /proc/sys/kernel/hotplug