aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinitramfs-init.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index cd7d71e..934fe92 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -503,7 +503,8 @@ done
# setup /dev
ebegin "Starting mdev"
-mount -t tmpfs -o exec,nosuid,mode=0755,size=1M mdev /dev
+mount -t devtmpfs -o exec,nosuid,mode=0755,size=2M devtmpfs /dev 2>/dev/null \
+ || mount -t tmpfs -o exec,nosuid,mode=0755,size=2M tmpfs /dev
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
mdev -s
RC=$?