From b63079bb42c811a903108fcc944109b34f90f074 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 1 Jan 2022 20:00:55 +0200 Subject: get dm for crypttab Sponsored-by: author --- vmdb/plugins/fstab_plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vmdb/plugins/fstab_plugin.py b/vmdb/plugins/fstab_plugin.py index 0149860..67b37ab 100644 --- a/vmdb/plugins/fstab_plugin.py +++ b/vmdb/plugins/fstab_plugin.py @@ -41,6 +41,8 @@ class FstabStepRunner(vmdb.StepRunnerInterface): if mount_point is not None: fstype = state.tags.get_fstype(tag) uuid = state.tags.get_uuid(tag) + dm = state.tags.get_dm(tag) + if uuid is None: raise Exception( "Unknown UUID for device {} (to be mounted on {})".format( @@ -51,6 +53,7 @@ class FstabStepRunner(vmdb.StepRunnerInterface): filesystems.append( { "uuid": uuid, + "dm": dm, "mount_point": mount_point, "fstype": fstype, } -- cgit v1.2.1