From: David Caro Date: Fri, 7 May 2021 15:58:23 +0000 (+0200) Subject: ceph-volume: consider /dev/root mounted X-Git-Tag: v16.2.6~78^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=50de2080e1b3003dc468781c17fb7511624054c9;p=ceph.git ceph-volume: consider /dev/root mounted Fixes: https://tracker.ceph.com/issues/50604 Signed-off-by: David Caro (cherry picked from commit c7b959c35ff463cfbffa2abf0f56a1c1a5f594c8) --- diff --git a/src/ceph-volume/ceph_volume/util/system.py b/src/ceph-volume/ceph_volume/util/system.py index 4998623373fdf..d0d6545d3fab1 100644 --- a/src/ceph-volume/ceph_volume/util/system.py +++ b/src/ceph-volume/ceph_volume/util/system.py @@ -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: