mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 14:36:58 +02:00
The teardown_env is a little slow when unmounting things because it runs `sudo umount` once per mount point. This is so that when things go wrong, it can easily recover. However, this slows down the common case at the expense of the uncommon. Refactor the code so that in the common case, we run one `sudo umount`. When things do fail, we're a bit slower as we reparse the entire mount, list, but that's fine as it's an error case. BUG=None TEST=enable `set -x`; run `cros_sdk true`; see all mount points unmounted in one shot Change-Id: Iec98a7b9f51a77e90c30e6f6acae26e528b8c50d Reviewed-on: http://gerrit.chromium.org/gerrit/7822 Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: David James <davidjames@chromium.org> |
||
---|---|---|
.. | ||
enter_chroot.sh |