summaryrefslogtreecommitdiff
path: root/packages/initrdscripts/files
diff options
context:
space:
mode:
authorAlex Osborne <ato@meshy.org>2007-07-20 13:24:07 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-07-20 13:24:07 +0000
commit4dbe593fa51cf0286431c13f78c7a769efb10ff7 (patch)
treeea0636807888ab0774020f2f71703ab482965385 /packages/initrdscripts/files
parent05f43c3791f8c270e5a8f32a19801154a9633913 (diff)
initramfs: Add blockboot plugin and cleanup dependency handling.
Diffstat (limited to 'packages/initrdscripts/files')
-rw-r--r--packages/initrdscripts/files/blockboot.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/initrdscripts/files/blockboot.sh b/packages/initrdscripts/files/blockboot.sh
new file mode 100644
index 0000000000..567f7e29b3
--- /dev/null
+++ b/packages/initrdscripts/files/blockboot.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Allow booting from a normal block device.
+
+if [ -e "$ROOT_DEVICE" ]; then
+ echo "booting from: $ROOT_DEVICE"
+ mount "$ROOT_DEVICE" /mnt
+ BOOT_ROOT=/mnt
+fi