aboutsummaryrefslogtreecommitdiffstats
path: root/packages/initrdscripts/files/85-blockboot.sh
blob: fee9072d3a61efd17969192481c99c2218ba66e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Allow booting from a normal block device.

if [ -e "$ROOT_DEVICE" ]; then
    echo "booting from: $ROOT_DEVICE"
    type=""
    if [ -n "$FSTYPE" ]; then
	type="-t $FSTYPE"
    fi
    mount $type "$ROOT_DEVICE" /mnt || fatal "Unable to mount rootfs device"
    BOOT_ROOT=/mnt
fi