summaryrefslogtreecommitdiffstats
path: root/fs/cpio/init
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cpio/init')
-rwxr-xr-xfs/cpio/init7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cpio/init b/fs/cpio/init
new file mode 100755
index 000000000..a27548217
--- /dev/null
+++ b/fs/cpio/init
@@ -0,0 +1,7 @@
+#!/bin/sh
+# devtmpfs does not get automounted for initramfs
+/bin/mount -t devtmpfs devtmpfs /dev
+exec 0</dev/console
+exec 1>/dev/console
+exec 2>/dev/console
+exec /sbin/init $*