Skip to content

Commit

Permalink
Refactoring duplicate identical call to mount.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tails developers authored and daniel-baumann committed Apr 28, 2015
1 parent c5b6cb0 commit e24d836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/9990-misc-helpers.sh
Expand Up @@ -1301,7 +1301,6 @@ do_union ()
unionmountopts="${unionmountopts}:${rofs}=${ro_opt}"
done
fi
mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
;;

overlay)
Expand All @@ -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 ()
Expand Down

0 comments on commit e24d836

Please sign in to comment.