Removing unused variables.
[live-boot-grml.git] / components / 9990-misc-helpers.sh
index e1f2824..4815553 100755 (executable)
@@ -1305,9 +1305,6 @@ do_union ()
                        ;;
 
                overlay)
-                       rw_opt="rw"
-                       ro_opt="ro"
-
                        # XXX: can multiple unionro be used? (overlay only handles two dirs, but perhaps they can be chained?)
                        # XXX: and can unionro be optional? i.e. can overlay skip lowerdir?
                        if echo ${unionro} | grep -q " "
@@ -1317,13 +1314,12 @@ do_union ()
                        then
                                panic "overlay needs at least one lower filesystem (read-only branch)."
                        fi
-                       unionmountopts="-o noatime,lowerdir=${unionro},upperdir=${unionrw}"
                        # overlayfs requires:
                        # + a workdir to become mounted
                        # + workdir and upperdir to reside under the same mount
                        # + workdir and upperdir to be in separate directories
-                       mkdir ${unionrw}/rw
-                       mkdir ${unionrw}/work
+                       mkdir "${unionrw}/rw"
+                       mkdir "${unionrw}/work"
                        unionmountopts="-o noatime,lowerdir=${unionro},upperdir=${unionrw}/rw,workdir=${unionrw}/work"
                        mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
                        ;;