This commit is contained in:
Tomas Kopecek 2017-03-07 14:49:30 +01:00 committed by Mike McLean
parent 22bedc900d
commit 93034f64f3
6 changed files with 12 additions and 18 deletions

View file

@ -301,9 +301,8 @@ class RunRootTask(tasks.BaseTaskHandler):
#also, check /proc/mounts just in case
for dir in scan_mounts(rootdir):
mounts.setdefault(dir, 1)
mounts = mounts.keys()
mounts = sorted(mounts.keys())
# deeper directories first
mounts.sort()
mounts.reverse()
failed = []
self.logger.info("Unmounting (runroot): %s" % mounts)