summaryrefslogtreecommitdiff
path: root/packages/initrdscripts/files/85-blockboot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initrdscripts/files/85-blockboot.sh')
-rw-r--r--packages/initrdscripts/files/85-blockboot.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/initrdscripts/files/85-blockboot.sh b/packages/initrdscripts/files/85-blockboot.sh
index 567f7e29b3..fee9072d3a 100644
--- a/packages/initrdscripts/files/85-blockboot.sh
+++ b/packages/initrdscripts/files/85-blockboot.sh
@@ -3,6 +3,10 @@
if [ -e "$ROOT_DEVICE" ]; then
echo "booting from: $ROOT_DEVICE"
- mount "$ROOT_DEVICE" /mnt
+ type=""
+ if [ -n "$FSTYPE" ]; then
+ type="-t $FSTYPE"
+ fi
+ mount $type "$ROOT_DEVICE" /mnt || fatal "Unable to mount rootfs device"
BOOT_ROOT=/mnt
fi