diff options
author | unqueued <unqueued@users.noreply.github.com> | 2020-04-12 06:09:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 12:09:00 +0200 |
commit | abdb79ce264ae517aa59fbbc91c3ef4de6519295 (patch) | |
tree | 52cbf4881263622227aff5a2a613ae86929e003e | |
parent | sourceroot/init: add /run. (diff) | |
download | better-initramfs-abdb79ce264ae517aa59fbbc91c3ef4de6519295.tar.xz better-initramfs-abdb79ce264ae517aa59fbbc91c3ef4de6519295.zip |
sourceroot/functions.sh: rootflags= support added (#52)
-rwxr-xr-x | sourceroot/functions.sh | 5 |
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 ;; |