diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-11-05 13:50:06 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2008-11-05 13:53:09 +0100 |
commit | 6e7061263e65601c82f37eb5d4ca5cc3b7876df6 (patch) | |
tree | ebb0034e25fbad46d8d41d4978fc61535a3f6dd5 /meta/packages/initrdscripts/files/init-boot.sh | |
parent | 97cbee6239af91e856a4275819cd7c3f727b72e8 (diff) | |
download | poky-6e7061263e65601c82f37eb5d4ca5cc3b7876df6.tar.gz |
initrdscripts: Add the simplest init script
When booting from initramfs, one must provide a /init link.
This one is the simplest one, just forking a shell, allowing
for the smallest initramfs.
Diffstat (limited to 'meta/packages/initrdscripts/files/init-boot.sh')
-rw-r--r-- | meta/packages/initrdscripts/files/init-boot.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/packages/initrdscripts/files/init-boot.sh b/meta/packages/initrdscripts/files/init-boot.sh new file mode 100644 index 0000000000..9d804fc3a7 --- /dev/null +++ b/meta/packages/initrdscripts/files/init-boot.sh | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | mkdir /proc | ||
4 | mkdir /sys | ||
5 | mount -t proc proc /proc | ||
6 | mount -t sysfs sysfs /sys | ||
7 | |||
8 | exec sh | ||