Merge pull request #353 from coreos-inc/volcheckfix
Loosen the check for mounted volumes
This commit is contained in:
commit
5ba3521e67
1 changed files with 1 additions and 2 deletions
|
@ -157,7 +157,6 @@ class LocalStorage(BaseStorageV2):
|
||||||
# Verify that the storage's root path is under a mounted Docker volume.
|
# Verify that the storage's root path is under a mounted Docker volume.
|
||||||
for mount in mounts:
|
for mount in mounts:
|
||||||
if mount.mountpoint != '/' and self._root_path.startswith(mount.mountpoint):
|
if mount.mountpoint != '/' and self._root_path.startswith(mount.mountpoint):
|
||||||
if mount.device == 'tmpfs':
|
|
||||||
return
|
return
|
||||||
|
|
||||||
raise Exception('Storage path %s is not under a mounted volume.\n\n'
|
raise Exception('Storage path %s is not under a mounted volume.\n\n'
|
||||||
|
|
Reference in a new issue