diff options
author | Tails developers <amnesia@boum.org> | 2015-02-15 17:33:58 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-04-28 06:53:28 +0200 |
commit | e24d836cde9a318659eacea5f76e5a2b634a0b91 (patch) | |
tree | bbcfcd48f9c25341d4ddcd7ef3a6a2e4f4ea7bc5 /components | |
parent | c5b6cb0b238bc8230a9366abafa73752dc093d27 (diff) | |
download | live-boot-e24d836cde9a318659eacea5f76e5a2b634a0b91.tar.gz live-boot-e24d836cde9a318659eacea5f76e5a2b634a0b91.zip |
Refactoring duplicate identical call to mount.
Diffstat (limited to 'components')
-rwxr-xr-x | components/9990-misc-helpers.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index 4815553..9318a4b 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -1301,7 +1301,6 @@ do_union () unionmountopts="${unionmountopts}:${rofs}=${ro_opt}" done fi - mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}" ;; overlay) @@ -1321,9 +1320,10 @@ do_union () mkdir "${unionrw}/rw" mkdir "${unionrw}/work" unionmountopts="-o noatime,lowerdir=${unionro},upperdir=${unionrw}/rw,workdir=${unionrw}/work" - mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}" ;; esac + + mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}" } get_custom_mounts () |