diff options
| author | Daniel Baumann <daniel@debian.org> | 2012-09-30 09:54:59 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2012-09-30 09:55:06 +0200 |
| commit | e182c1d4f7ec50f1498d900f7c6250191537457f (patch) | |
| tree | 049d7c0ea0037232d30fcfbacac01e1351ab0571 | |
| parent | 494a8ed1624515951051677ba7b3ecb38b4ec79a (diff) | |
| download | live-boot-e182c1d4f7ec50f1498d900f7c6250191537457f.tar.gz live-boot-e182c1d4f7ec50f1498d900f7c6250191537457f.zip | |
Removing showmounts option as it's enable always anyway.
| -rwxr-xr-x | scripts/boot/9990-cmdline-old | 5 | ||||
| -rwxr-xr-x | scripts/boot/9990-overlay.sh | 50 |
2 files changed, 22 insertions, 33 deletions
diff --git a/scripts/boot/9990-cmdline-old b/scripts/boot/9990-cmdline-old index 7a6ce43..85f1b62 100755 --- a/scripts/boot/9990-cmdline-old +++ b/scripts/boot/9990-cmdline-old @@ -203,11 +203,6 @@ Cmdline_old () export QUICKUSBMODULES ;; - showmounts) - SHOWMOUNTS="true" - export SHOWMOUNTS - ;; - todisk=*) TODISK="${_PARAMETER#todisk=}" export TODISK diff --git a/scripts/boot/9990-overlay.sh b/scripts/boot/9990-overlay.sh index 8283c73..3ee382e 100755 --- a/scripts/boot/9990-overlay.sh +++ b/scripts/boot/9990-overlay.sh @@ -350,34 +350,28 @@ setup_unionfs () fi live_rofs_list="" - # SHOWMOUNTS is necessary for custom mounts with the union option - # Since we may want to do custom mounts in user-space it's best to always enable SHOWMOUNTS - if true #[ -n "${SHOWMOUNTS}" ] || ( [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ] 1) - then - # XXX: is the for loop really necessary? rofslist can only contain one item (see above XXX about EXPOSEDROOT) and this is also assumed elsewhere above (see use of $rofs above). - for d in ${rofslist} - do - live_rofs="/live/rofs/${d##*/}" - live_rofs_list="${live_rofs_list} ${live_rofs}" - mkdir -p "${live_rofs}" - case d in - *.dir) - # do nothing # mount -o bind "${d}" "${live_rofs}" - ;; - *) - case "${UNIONTYPE}" in - unionfs-fuse) - mount -o bind "${d}" "${live_rofs}" - ;; - - *) - mount -o move "${d}" "${live_rofs}" - ;; - esac - ;; - esac - done - fi + for d in ${rofslist} + do + live_rofs="/live/rofs/${d##*/}" + live_rofs_list="${live_rofs_list} ${live_rofs}" + mkdir -p "${live_rofs}" + case d in + *.dir) + # do nothing # mount -o bind "${d}" "${live_rofs}" + ;; + *) + case "${UNIONTYPE}" in + unionfs-fuse) + mount -o bind "${d}" "${live_rofs}" + ;; + + *) + mount -o move "${d}" "${live_rofs}" + ;; + esac + ;; + esac + done # Adding custom persistence if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ] |
