]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: consider /dev/root mounted 41277/head
authorDavid Caro <david@dcaro.es>
Fri, 7 May 2021 15:58:23 +0000 (17:58 +0200)
committerDavid Caro <david@dcaro.es>
Tue, 11 May 2021 10:25:29 +0000 (12:25 +0200)
Fixes: https://tracker.ceph.com/issues/50604
Signed-off-by: David Caro <david@dcaro.es>
src/ceph-volume/ceph_volume/util/system.py

index 4998623373fdfc8b49f341fabceaf74566b99f50..d0d6545d3fab1c14b9ff20089aef104a5708165f 100644 (file)
@@ -260,6 +260,7 @@ def get_mounts(devices=False, paths=False, realpath=False):
 
     - tmpfs
     - devtmpfs
+    - /dev/root
 
     If ``devices`` is set to ``True`` the mapping will be a device-to-path(s),
     if ``paths`` is set to ``True`` then the mapping will be
@@ -270,7 +271,7 @@ def get_mounts(devices=False, paths=False, realpath=False):
     """
     devices_mounted = {}
     paths_mounted = {}
-    do_not_skip = ['tmpfs', 'devtmpfs']
+    do_not_skip = ['tmpfs', 'devtmpfs', '/dev/root']
     default_to_devices = devices is False and paths is False
 
     with open(PROCDIR + '/mounts', 'rb') as mounts: