Commit eb9a1a84 authored by Natanael Copa's avatar Natanael Copa

initram: support for root=/dev/md0, create busybox links

parent 60258b46
#!/bin/sh
#!/bin/busybox sh
# this is the init script version
VERSION=1.0
NEWROOT=/newroot
SINGLEMODE=no
/bin/busybox --install -s
# basic environment
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
......@@ -125,6 +127,16 @@ eend 0
# check if root=... was set
if [ -n "$KOPT_root" ]; then
if [ "$SINGLEMODE" = "yes" ]; then
echo "Entering single mode. Type 'exit' to continue booting."
sh
fi
case "$KOPT_root" in
/dev/md*)
mknod $KOPT_root b 9 ${KOPT_root#/dev/md}
raidautorun "$KOPT_root"
;;
esac
ebegin "Mounting root"
retry_mount $KOPT_root $NEWROOT 2>/dev/null
eend $?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment