diff options
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r-- | src/core/cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 89fa97cb60..ddd3f40817 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -678,8 +678,8 @@ static int lookup_block_device(const char *p, dev_t *ret) { return log_warning_errno(r, "Failed to determine block device backing btrfs file system '%s': %m", p); } - /* If this is a LUKS device, try to get the originating block device */ - (void) block_get_originating(*ret, ret); + /* If this is a LUKS/DM device, recursively try to get the originating block device */ + while (block_get_originating(*ret, ret) > 0); /* If this is a partition, try to get the originating block device */ (void) block_get_whole_disk(*ret, ret); |