aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsourceroot/functions.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/sourceroot/functions.sh b/sourceroot/functions.sh
index a7851b1..df3444c 100755
--- a/sourceroot/functions.sh
+++ b/sourceroot/functions.sh
@@ -499,14 +499,11 @@ emount() {
else
einfo "Mounting /newroot..."
musthave root
- if [ "${rootfsmountparams}" ]; then
- mountparams="${rootfsmountparams}"
- fi
if [ -n "${rootfstype}" ]; then
mountparams="${mountparams} -t ${rootfstype}"
fi
resolve_device root
- run mount -o ${root_rw_ro:-ro} ${mountparams} "${root}" '/newroot'
+ run mount -o "${rootflags:+${rootflags},}${root_rw_ro:-ro}" ${mountparams} "${root}" '/newroot'
fi
;;