From ebd2d48831c91e8e23346a2798c44faf9198e8d6 Mon Sep 17 00:00:00 2001 From: David Caro Date: Fri, 7 May 2021 17:58:23 +0200 Subject: [PATCH] ceph-volume: consider /dev/root mounted Fixes: https://tracker.ceph.com/issues/50604 Signed-off-by: David Caro (cherry picked from commit c7b959c35ff463cfbffa2abf0f56a1c1a5f594c8) --- src/ceph-volume/ceph_volume/util/system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.39.5