Blame 0065-99base-init-remove-tmpfs-on-dev.patch

Harald Hoyer 8e216f
From ba7fa583bf7fdc548e961f23d2801cb4e7d50aba Mon Sep 17 00:00:00 2001
Harald Hoyer 8e216f
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 8e216f
Date: Mon, 23 Jan 2012 16:08:46 +0100
Harald Hoyer 8e216f
Subject: [PATCH] 99base/init: remove tmpfs on /dev
Harald Hoyer 8e216f
Harald Hoyer 8e216f
tmpfs on /dev is not supported anymore and devtmpfs is supported in
Harald Hoyer 8e216f
kernels for a long time.
Harald Hoyer 8e216f
---
Harald Hoyer 8e216f
 modules.d/99base/init |   11 +----------
Harald Hoyer 8e216f
 1 files changed, 1 insertions(+), 10 deletions(-)
Harald Hoyer 8e216f
Harald Hoyer 8e216f
diff --git a/modules.d/99base/init b/modules.d/99base/init
Harald Hoyer 8e216f
index 33a7379..abfa3c5 100755
Harald Hoyer 8e216f
--- a/modules.d/99base/init
Harald Hoyer 8e216f
+++ b/modules.d/99base/init
Harald Hoyer 8e216f
@@ -110,16 +110,7 @@ if [ "$RD_DEBUG" = "yes" ]; then
Harald Hoyer 8e216f
 fi
Harald Hoyer 8e216f
 
Harald Hoyer 8e216f
 if ! ismounted /dev; then
Harald Hoyer 8e216f
-    # try to mount devtmpfs
Harald Hoyer 8e216f
-    if ! mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev >/dev/null 2>&1; then
Harald Hoyer 8e216f
-        # if it failed fall back to normal tmpfs
Harald Hoyer 8e216f
-        mount -t tmpfs -o mode=0755,nosuid tmpfs /dev >/dev/null 2>&1
Harald Hoyer 8e216f
-        # Make some basic devices first, let udev handle the rest
Harald Hoyer 8e216f
-        mknod -m 0666 /dev/null c 1 3
Harald Hoyer 8e216f
-        mknod -m 0666 /dev/ptmx c 5 2
Harald Hoyer 8e216f
-        mknod -m 0600 /dev/console c 5 1
Harald Hoyer 8e216f
-        mknod -m 0660 /dev/kmsg c 1 11
Harald Hoyer 8e216f
-    fi
Harald Hoyer 8e216f
+    mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev >/dev/null 2>&1
Harald Hoyer 8e216f
 fi
Harald Hoyer 8e216f
 
Harald Hoyer 8e216f
 # prepare the /dev directory