mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-08 17:21:39 +01:00
Normally safe_umount_tree isn't called if there are no mount points in the chroot, but there are some edge cases (like early setup errors) where it may be possible. So add a simple check to make sure that there are mount points for us to work on before calling umount. BUG=None TEST=add early `die` before mounts; see no umount error output Change-Id: I57e5022c3242c635097bceed44772f10eecf6a64 Reviewed-on: http://gerrit.chromium.org/gerrit/8026 Reviewed-by: Raymes Khoury <raymes@chromium.org> Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
Description
Languages
Shell
93.1%
Python
6.9%