aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs/fix-dev-null.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/mkinitfs/fix-dev-null.patch')
-rw-r--r--main/mkinitfs/fix-dev-null.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/mkinitfs/fix-dev-null.patch b/main/mkinitfs/fix-dev-null.patch
new file mode 100644
index 0000000000..8b1161cee9
--- /dev/null
+++ b/main/mkinitfs/fix-dev-null.patch
@@ -0,0 +1,12 @@
+--- a/initramfs-init.in
++++ b/initramfs-init.in
+@@ -235,6 +235,9 @@
+ RC=$?
+ [ -d /dev/pts ] || mkdir -m 755 /dev/pts
+ [ -c /dev/ptmx ] || mknod -m 666 /dev/ptmx c 5 2
++# make sure /dev/null is setup correctly
++[ -f /dev/null ] && rm -f /dev/null
++[ -c /dev/null ] || mknod -m 666 /dev/null c 1 3
+ mount -t devpts -o gid=5,mode=0620,noexec,nosuid devpts /dev/pts
+ [ -d /dev/shm ] || mkdir /dev/shm
+ mount -t tmpfs -o nodev,nosuid,noexec shm /dev/shm