Revision 47505e53 image_creator/bundle_volume.py
b/image_creator/bundle_volume.py | ||
---|---|---|
304 | 304 |
mpoints = [] |
305 | 305 |
for entry in self._read_fstable('/proc/mounts'): |
306 | 306 |
if entry.mpoint.startswith(os.path.abspath(target)): |
307 |
mpoints.append(entry.mpoint)
|
|
307 |
mpoints.append(entry.mpoint) |
|
308 | 308 |
|
309 | 309 |
mpoints.sort() |
310 | 310 |
for mpoint in reversed(mpoints): |
... | ... | |
336 | 336 |
continue |
337 | 337 |
|
338 | 338 |
dirname = mpoint |
339 |
basename = '' |
|
340 | 339 |
found_ancestor = False |
341 | 340 |
while dirname != '/': |
342 |
(dirname, basename) = os.path.split(dirname)
|
|
341 |
(dirname, _) = os.path.split(dirname)
|
|
343 | 342 |
if dirname in excluded: |
344 | 343 |
found_ancestor = True |
345 | 344 |
break |
Also available in: Unified diff