summaryrefslogtreecommitdiffstats
path: root/fs/initramfs/init
diff options
context:
space:
mode:
authorArnout Vandecappelle (Essensium/Mind)2011-09-06 23:16:09 +0200
committerPeter Korsgaard2011-09-27 22:46:00 +0200
commit13a3afc536b845e8de8eea9b91bbc6e7430c4566 (patch)
treee6c12ef1dc34eb5d70877b6c3c7a880958ddce34 /fs/initramfs/init
parentcpio: fix boot with dynamic /dev (diff)
downloadbuildroot-13a3afc536b845e8de8eea9b91bbc6e7430c4566.tar.gz
buildroot-13a3afc536b845e8de8eea9b91bbc6e7430c4566.tar.xz
buildroot-13a3afc536b845e8de8eea9b91bbc6e7430c4566.zip
fs/initramfs: refactor with fs/cpio
An initramfs is in fact the same as a cpio archive, but embedded in the kernel. So instead of duplicating the cpio infrastructure, we can simply build images/rootfs.cpio and link that into the kernel. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'fs/initramfs/init')
-rwxr-xr-xfs/initramfs/init7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/initramfs/init b/fs/initramfs/init
deleted file mode 100755
index a27548217..000000000
--- a/fs/initramfs/init
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/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 $*