summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/local6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/local b/scripts/local
index b6bd192..7bc740f 100644
--- a/scripts/local
+++ b/scripts/local
@@ -127,7 +127,11 @@ mountroot()
# FIXME This has no error checking
# Mount root
- mount ${roflag} -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
+ if [ "${FSTYPE}" != "unknown" ]; then
+ mount ${roflag} -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
+ else
+ mount ${roflag} ${ROOTFLAGS} ${ROOT} ${rootmnt}
+ fi
[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-bottom"
run_scripts /scripts/local-bottom