aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorunqueued <unqueued@users.noreply.github.com>2020-04-12 06:09:00 -0400
committerGitHub <noreply@github.com>2020-04-12 12:09:00 +0200
commitabdb79ce264ae517aa59fbbc91c3ef4de6519295 (patch)
tree52cbf4881263622227aff5a2a613ae86929e003e
parentsourceroot/init: add /run. (diff)
downloadbetter-initramfs-abdb79ce264ae517aa59fbbc91c3ef4de6519295.tar.xz
better-initramfs-abdb79ce264ae517aa59fbbc91c3ef4de6519295.zip
sourceroot/functions.sh: rootflags= support added (#52)
-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
;;