From 6e7061263e65601c82f37eb5d4ca5cc3b7876df6 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 5 Nov 2008 13:50:06 +0100 Subject: 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. --- meta/packages/initrdscripts/files/init-boot.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 meta/packages/initrdscripts/files/init-boot.sh (limited to 'meta/packages/initrdscripts/files') diff --git a/meta/packages/initrdscripts/files/init-boot.sh b/meta/packages/initrdscripts/files/init-boot.sh new file mode 100644 index 000000000..9d804fc3a --- /dev/null +++ b/meta/packages/initrdscripts/files/init-boot.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +mkdir /proc +mkdir /sys +mount -t proc proc /proc +mount -t sysfs sysfs /sys + +exec sh -- cgit v1.2.3