From abdb79ce264ae517aa59fbbc91c3ef4de6519295 Mon Sep 17 00:00:00 2001 From: unqueued Date: Sun, 12 Apr 2020 06:09:00 -0400 Subject: sourceroot/functions.sh: rootflags= support added (#52) --- sourceroot/functions.sh | 5 +---- 1 file changed, 1 insertion(+), 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 ;; -- cgit v1.2.3-59-g8ed1b